MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_timeout_applied_from_stash

Method test_timeout_applied_from_stash

tests/test_query.py:172–177  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

170 """
171
172 def test_timeout_applied_from_stash(self, tmp_path):
173 from openkb.config import set_timeout
174
175 set_timeout(1200.0)
176 agent = build_query_agent(str(tmp_path), "gpt-4o-mini")
177 assert agent.model_settings.extra_args == {"timeout": 1200.0}
178
179 def test_no_timeout_by_default(self, tmp_path):
180 agent = build_query_agent(str(tmp_path), "gpt-4o-mini")

Callers

nothing calls this directly

Calls 2

set_timeoutFunction · 0.90
build_query_agentFunction · 0.90

Tested by

no test coverage detected