]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Update test_config.py
authorTom Christie <tom@tomchristie.com>
Thu, 21 Nov 2024 11:44:32 +0000 (11:44 +0000)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2024 11:44:32 +0000 (11:44 +0000)
tests/test_config.py

index f77a4c7274aa0afbd74002e429c6c76b3aa29b04..6d4c5cd211a22426e7d12f6c54a1799aa5a50f48 100644 (file)
@@ -2,7 +2,6 @@ import ssl
 import typing
 from pathlib import Path
 
-import certifi
 import pytest
 
 import httpx
@@ -20,20 +19,6 @@ def test_load_ssl_config_verify_non_existing_file():
         context.load_verify_locations(cafile="/path/to/nowhere")
 
 
-def test_load_ssl_config_verify_existing_file():
-    context = httpx.create_ssl_context()
-    context.load_verify_locations(capath=certifi.where())
-    assert context.verify_mode == ssl.VerifyMode.CERT_REQUIRED
-    assert context.check_hostname is True
-
-
-def test_load_ssl_config_verify_directory():
-    context = httpx.create_ssl_context()
-    context.load_verify_locations(capath=Path(certifi.where()).parent)
-    assert context.verify_mode == ssl.VerifyMode.CERT_REQUIRED
-    assert context.check_hostname is True
-
-
 def test_load_ssl_config_cert_and_key(cert_pem_file, cert_private_key_file):
     context = httpx.create_ssl_context()
     context.load_cert_chain(cert_pem_file, cert_private_key_file)