MCPcopy Create free account
hub / github.com/openai/openai-agents-python / post

Method post

tests/extensions/sandbox/test_cloudflare.py:625–627  ·  view source on GitHub ↗
(self, url: str, **kwargs: Any)

Source from the content-addressed store, hash-verified

623async def test_cloudflare_exec_timeout_raises_exec_timeout_error() -> None:
624 class _TimeoutHttp(_FakeHttp):
625 def post(self, url: str, **kwargs: Any) -> Any:
626 self._record("POST", url, **kwargs)
627 raise asyncio.TimeoutError()
628
629 with pytest.raises(ExecTimeoutError):
630 await _make_session(fake_http=_TimeoutHttp())._exec_internal("sleep", "999", timeout=1.0)

Callers

nothing calls this directly

Calls 1

_recordMethod · 0.80

Tested by

no test coverage detected