mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-02-03 02:04:06 +08:00
fix(test): mock VERSION in setup test to test non-dev config check logic
This commit is contained in:
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user