[loop-cycle] fix: test_config hardcoded ollama model vs .env override (#1207)
Some checks failed
Tests / lint (push) Has been cancelled
Tests / test (push) Has been cancelled

This commit was merged in pull request #1207.
This commit is contained in:
2026-03-23 22:22:40 +00:00
parent a5b95356dd
commit 46edac3e76

View File

@@ -699,12 +699,12 @@ class TestGetEffectiveOllamaModel:
"""get_effective_ollama_model walks fallback chain."""
def test_returns_primary_when_available(self):
from config import get_effective_ollama_model
from config import get_effective_ollama_model, settings
with patch("config.check_ollama_model_available", return_value=True):
result = get_effective_ollama_model()
# Default is qwen3:14b
assert result == "qwen3:14b"
# Should return whatever the settings primary model is
assert result == settings.ollama_model
def test_falls_back_when_primary_unavailable(self):
from config import get_effective_ollama_model, settings