diff --git a/tests/unit/test_config_oss.py b/tests/unit/test_config_oss.py index 077c84178..dffdb676d 100644 --- a/tests/unit/test_config_oss.py +++ b/tests/unit/test_config_oss.py @@ -40,7 +40,7 @@ def _fresh_settings(**env_overrides: dict[str, str]): "JWT_SECRET_KEY": "unit-test-secret-key-12345", **env_overrides, } - with patch.dict(os.environ, env, clear=False): + with patch.dict(os.environ, env, clear=True): Settings = _load_settings_class() return Settings() @@ -192,7 +192,7 @@ class TestOSSConfigAliases: "JWT_SECRET_KEY": "unit-test-secret-key-12345", "MAX_UPLOAD_SIZE_MB": "3000", } - with patch.dict(os.environ, env, clear=False): + with patch.dict(os.environ, env, clear=True): os.environ.pop("OSS_DIRECT_UPLOAD_MAX_MB", None) Settings = _load_settings_class() settings = Settings()