MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / fake_batch

Function fake_batch

tests/test_registration_new_api.py:103–105  ·  view source on GitHub ↗
(request, background_tasks=None)

Source from the content-addressed store, hash-verified

101 captured = {}
102
103 async def fake_batch(request, background_tasks=None):
104 captured["request"] = request
105 return type("Response", (), {"batch_id": "batch-1", "model_dump": lambda self: {"batch_id": "batch-1"}})()
106
107 monkeypatch.setattr(registration, "_start_batch_registration_internal", fake_batch)
108 monkeypatch.setattr(registration, "_validate_registration_request", lambda _: None)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected