fix: test_config_loads_defaults — remove reload() that undid CONFIG_PATH patch

This commit is contained in:
2026-04-01 13:49:21 +02:00
parent b63f5d59a9
commit d60d6bb1be
+1 -2
View File
@@ -6,9 +6,8 @@ from unittest.mock import patch
def test_config_loads_defaults():
with tempfile.TemporaryDirectory() as tmpdir:
cfg_path = os.path.join(tmpdir, "config.toml")
import config
with patch("config.CONFIG_PATH", cfg_path):
import importlib, config
importlib.reload(config)
cfg = config.load()
assert cfg["ollama"]["model"] == "gemma3:12b"
assert cfg["whisper"]["model"] == "large-v3"