feat(navigation): refine mobile station explorer

This commit is contained in:
lingniu
2026-08-12 11:28:50 +08:00
parent 9452e30538
commit 1403b84b0b
6 changed files with 208 additions and 12 deletions
+3
View File
@@ -30,6 +30,9 @@ class StationNavigationTest(unittest.TestCase):
def test_static_assets_are_fingerprinted(self):
self.assertRegex(server.STATIC_ASSET_VERSION, r"^[0-9a-f]{16}$")
def test_static_assets_resolve_from_the_release_directory(self):
self.assertIn('directory=str(ROOT)', Path(__file__).parents[1].joinpath('server.py').read_text(encoding='utf-8'))
def test_default_cache_window_is_two_minutes(self):
self.assertEqual(server.STATION_CACHE_SECONDS, 120)