MCPcopy
hub / github.com/encode/httpx / server

Function server

tests/conftest.py:284–287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282
283@pytest.fixture(scope="session")
284def server() -> typing.Iterator[TestServer]:
285 config = Config(app=app, lifespan="off", loop="asyncio")
286 server = TestServer(config=config)
287 yield from serve_in_thread(server)

Callers

nothing calls this directly

Calls 2

TestServerClass · 0.85
serve_in_threadFunction · 0.85

Tested by

no test coverage detected