Personal AI, On Personal Devices
Python
fix: mock config in test_init_defaults to test class-level defaults
Jon Saad-Falcon9dbd172950a5
diff --git a/tests/operators/test_operators.py b/tests/operators/test_operators.pyindex 065dc596..87e51eb4 100644--- a/tests/operators/test_operators.py+++ b/tests/operators/test_operators.py@@ -485,7 +485,11 @@ class TestOperativeAgent:from openjarvis.agents.operative import OperativeAgentengine = FakeEngine()- agent = OperativeAgent(engine, "test-model")+ with patch(+ "openjarvis.agents._stubs.load_config",+ side_effect=Exception("no config"),+ ):+ agent = OperativeAgent(engine, "test-model")assert agent.agent_id == "operative"assert agent._temperature == 0.3assert agent._max_tokens == 2048