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

Function _fake_response

tests/test_llm_timeout.py:19–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17
18
19def _fake_response():
20 choice = MagicMock()
21 choice.message.content = "ok"
22 choice.finish_reason = "stop"
23 resp = MagicMock()
24 resp.choices = [choice]
25 return resp
26
27
28def test_llm_call_forwards_configured_timeout():

Calls

no outgoing calls

Tested by

no test coverage detected