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

Function test_ssl_config

tests/test_config.py:265–276  ·  view source on GitHub ↗
(
    tls_ca_certificate_pem_path: str,
    tls_ca_certificate_private_key_path: str,
)

Source from the content-addressed store, hash-verified

263
264
265def test_ssl_config(
266 tls_ca_certificate_pem_path: str,
267 tls_ca_certificate_private_key_path: str,
268) -> None:
269 config = Config(
270 app=asgi_app,
271 ssl_certfile=tls_ca_certificate_pem_path,
272 ssl_keyfile=tls_ca_certificate_private_key_path,
273 )
274 config.load()
275
276 assert config.is_ssl is True
277
278
279def test_ssl_config_combined(tls_certificate_key_and_chain_path: str) -> None:

Callers

nothing calls this directly

Calls 2

loadMethod · 0.95
ConfigClass · 0.90

Tested by

no test coverage detected