We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8600ff3 commit 3a07e05Copy full SHA for 3a07e05
1 file changed
tests/unit/test_agent_settings.py
@@ -1,9 +1,16 @@
1
"""Unit tests for agent settings defaults."""
2
3
+import pytest
4
+
5
from app.config import AgentSettings
6
7
-def test_agent_settings_defaults() -> None:
8
+def test_agent_settings_defaults(monkeypatch: pytest.MonkeyPatch) -> None:
9
+ monkeypatch.delenv("AGENT_MODEL_BACKEND", raising=False)
10
+ monkeypatch.delenv("AGENT_USE_LEGACY_FALLBACK", raising=False)
11
+ monkeypatch.delenv("AGENT_INFERENCE_PROVIDER", raising=False)
12
+ monkeypatch.delenv("AGENT_INFERENCE_TIMEOUT", raising=False)
13
14
settings = AgentSettings()
15
16
assert settings.model_backend == "local"
0 commit comments