MCPcopy Create free account
hub / github.com/Vinyzu/Botright / wait_for_request

Method wait_for_request

tests/server.py:149–154  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

147 self.listen(factory)
148
149 async def wait_for_request(self, path: str) -> TestServerRequest:
150 if path in self.request_subscribers:
151 return await self.request_subscribers[path]
152 future: asyncio.Future["TestServerRequest"] = asyncio.Future()
153 self.request_subscribers[path] = future
154 return await future
155
156 @contextlib.contextmanager
157 def expect_request(self, path: str) -> Generator[ExpectResponse[TestServerRequest], None, None]:

Callers 1

expect_requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected