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

Method _submit_batch

tests/extraction/test_runner.py:870–876  ·  view source on GitHub ↗
(requests)

Source from the content-addressed store, hash-verified

868 call_count = {"n": 0}
869
870 def _submit_batch(requests):
871 with lock:
872 call_count["n"] += 1
873 n = call_count["n"]
874 if n == 2:
875 raise ConnectionError("lost connection")
876 return "job-1"
877
878 bp.submit_batch.side_effect = _submit_batch
879 bp.poll_batch.return_value = MagicMock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected