(tls_ca_ssl_context, tls_certificate_key_and_chain_path, unused_tcp_port: int)
| 65 | |
| 66 | @pytest.mark.anyio |
| 67 | async 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 |
nothing calls this directly
no test coverage detected