MCPcopy
hub / github.com/nonebot/nonebot2 / request

Method request

tests/test_driver.py:622–623  ·  view source on GitHub ↗
(self, *args: object, **kwargs: object)

Source from the content-addressed store, hash-verified

620
621 class _FakeClient:
622 def request(self, *args: object, **kwargs: object) -> _FakeRequestContext:
623 return _FakeRequestContext()
624
625 session = AiohttpSession()
626 session._client = _FakeClient() # type: ignore[assignment]

Callers 4

test_http_clientFunction · 0.45
test_http_client_sessionFunction · 0.45
test_http_client_timeoutFunction · 0.45
test_adapter_http_clientFunction · 0.45

Calls 1

_FakeRequestContextClass · 0.85

Tested by

no test coverage detected