()
| 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" |
nothing calls this directly
no outgoing calls
no test coverage detected