fix(test): mock VERSION in setup test to test non-dev config check logic

This commit is contained in:
Estrella Pan
2026-01-26 21:03:34 +01:00
parent 6823c034f0
commit d288994916

View File

@@ -59,6 +59,7 @@ class TestSetupStatus:
patch("module.api.setup.SENTINEL_PATH") as mock_sentinel,
patch("module.api.setup.settings") as mock_settings,
patch("module.api.setup.Config") as mock_config,
patch("module.api.setup.VERSION", "3.2.0"), # Non-dev version to test config check
):
mock_sentinel.exists.return_value = False
mock_settings.dict.return_value = {"test": "changed"}