MCPcopy
hub / github.com/aio-libs/aiohttp / go

Function go

aiohttp/pytest_plugin.py:302–312  ·  view source on GitHub ↗
(
        app: Application,
        *,
        host: str = "127.0.0.1",
        port: int | None = None,
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

300 servers = []
301
302 async def go(
303 app: Application,
304 *,
305 host: str = "127.0.0.1",
306 port: int | None = None,
307 **kwargs: Any,
308 ) -> TestServer:
309 server = TestServer(app, host=host, port=port)
310 await server.start_server(loop=loop, **kwargs)
311 servers.append(server)
312 return server
313
314 yield go
315

Callers

nothing calls this directly

Calls 5

start_serverMethod · 0.95
RawTestServerClass · 0.85
TestClientClass · 0.85
appendMethod · 0.80
TestServerClass · 0.70

Tested by

no test coverage detected