MCPcopy Create free account
hub / github.com/idank/explainshell / _make_poll_client

Method _make_poll_client

tests/extraction/test_runner.py:952–958  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

950 call_count = {"n": 0}
951
952 def _make_poll_client():
953 with lock:
954 call_count["n"] += 1
955 n = call_count["n"]
956 if n == 2:
957 raise RuntimeError("auth failed")
958 return MagicMock()
959
960 bp.make_poll_client.side_effect = _make_poll_client
961 bp.submit_batch.return_value = "job-id"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected