Update test_config.py

This commit is contained in:
Tom Christie 2024-11-21 11:38:53 +00:00 committed by GitHub
parent c1a88bc873
commit 15ffaf9e1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,12 +20,6 @@ def test_load_ssl_config_verify_non_existing_file():
context.load_verify_locations(cafile="/path/to/nowhere")
def test_load_ssl_with_keylog(monkeypatch: typing.Any) -> None:
monkeypatch.setenv("SSLKEYLOGFILE", "test")
context = httpx.create_ssl_context()
assert context.keylog_filename == "test"
def test_load_ssl_config_verify_existing_file():
context = httpx.create_ssl_context()
context.load_verify_locations(capath=certifi.where())