Compare commits
1 Commits
main
...
fix/test-c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32b07bc848 |
@@ -699,12 +699,12 @@ class TestGetEffectiveOllamaModel:
|
|||||||
"""get_effective_ollama_model walks fallback chain."""
|
"""get_effective_ollama_model walks fallback chain."""
|
||||||
|
|
||||||
def test_returns_primary_when_available(self):
|
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):
|
with patch("config.check_ollama_model_available", return_value=True):
|
||||||
result = get_effective_ollama_model()
|
result = get_effective_ollama_model()
|
||||||
# Default is qwen3:14b
|
# Should return whatever the user's configured model is
|
||||||
assert result == "qwen3:14b"
|
assert result == settings.ollama_model
|
||||||
|
|
||||||
def test_falls_back_when_primary_unavailable(self):
|
def test_falls_back_when_primary_unavailable(self):
|
||||||
from config import get_effective_ollama_model, settings
|
from config import get_effective_ollama_model, settings
|
||||||
|
|||||||
Reference in New Issue
Block a user