Load runtime version from VERSION file

This commit is contained in:
Dymas
2026-05-26 19:49:10 +02:00
parent 7a0fa024ed
commit 2c1650d699
5 changed files with 24 additions and 3 deletions
+4
View File
@@ -2685,6 +2685,10 @@ class HandlerRouteTests(unittest.TestCase):
self.assertEqual(handler.json_payload["version"], APP.VERSION)
self.assertIn("ani_cli_version", handler.json_payload)
def test_loaded_runtime_version_matches_version_file(self):
expected_version = (ROOT / "VERSION").read_text(encoding="utf-8").strip()
self.assertEqual(APP.VERSION, expected_version)
def test_filesystem_browse_route_lists_directories(self):
with tempfile.TemporaryDirectory() as temp_root:
Path(temp_root, "folder-a").mkdir()