fix(navigation): support Python 3.6 static assets

This commit is contained in:
lingniu
2026-08-12 11:30:07 +08:00
parent 1403b84b0b
commit f707e6ad68
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class StationNavigationTest(unittest.TestCase):
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'))
self.assertIn('os.chdir(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)