MCPcopy
hub / github.com/encode/uvicorn / test_run_chain_only

Function test_run_chain_only

tests/test_ssl.py:67–78  ·  view source on GitHub ↗
(tls_ca_ssl_context, tls_certificate_key_and_chain_path, unused_tcp_port: int)

Source from the content-addressed store, hash-verified

65
66@pytest.mark.anyio
67async def test_run_chain_only(tls_ca_ssl_context, tls_certificate_key_and_chain_path, unused_tcp_port: int):
68 config = Config(
69 app=app,
70 loop="asyncio",
71 limit_max_requests=1,
72 ssl_certfile=tls_certificate_key_and_chain_path,
73 port=unused_tcp_port,
74 )
75 async with run_server(config):
76 async with httpx.AsyncClient(verify=tls_ca_ssl_context) as client:
77 response = await client.get(f"https://127.0.0.1:{unused_tcp_port}")
78 assert response.status_code == 204
79
80
81@pytest.mark.anyio

Callers

nothing calls this directly

Calls 2

ConfigClass · 0.90
run_serverFunction · 0.90

Tested by

no test coverage detected