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

Class _FakeRequestContext

tests/test_driver.py:614–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612 self.content = _FakeContent()
613
614 class _FakeRequestContext:
615 async def __aenter__(self) -> _FakeResponse:
616 return _FakeResponse()
617
618 async def __aexit__(self, *args: object) -> bool:
619 return False
620
621 class _FakeClient:
622 def request(self, *args: object, **kwargs: object) -> _FakeRequestContext:

Callers 1

requestMethod · 0.85

Calls

no outgoing calls

Tested by 1

requestMethod · 0.68