21 lines
691 B
Python
21 lines
691 B
Python
from pathlib import Path
|
|
import unittest
|
|
|
|
|
|
class TournamentDrawerLayoutTests(unittest.TestCase):
|
|
def test_tournament_list_owns_flexible_grid_row(self) -> None:
|
|
css = (Path(__file__).parents[1] / "hockey_data" / "static" / "tournament-menu.css").read_text(encoding="utf-8")
|
|
self.assertIn(
|
|
"grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto;",
|
|
css,
|
|
)
|
|
self.assertIn(
|
|
".hockey-navigation-drawer {\n grid-template-rows: auto auto minmax(0, 1fr);",
|
|
css,
|
|
)
|
|
self.assertIn(".hockey-nav-list {\n min-height: 0;\n height: 100%;", css)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|