8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e2ba3f commit fbe03c4Copy full SHA for fbe03c4
tests/test_httpx.py
@@ -11,7 +11,11 @@
11
TransportServerError,
12
)
13
14
-from .conftest import TemporaryFile, get_localhost_ssl_context, strip_braces_spaces
+from .conftest import (
15
+ TemporaryFile,
16
+ get_localhost_ssl_context_client,
17
+ strip_braces_spaces,
18
+)
19
20
# Marking all tests in this file with the httpx marker
21
pytestmark = pytest.mark.httpx
@@ -105,9 +109,9 @@ def test_code():
105
109
extra_args = {}
106
110
107
111
if verify_https == "cert_provided":
108
- cert, _ = get_localhost_ssl_context()
112
+ _, ssl_context = get_localhost_ssl_context_client()
113
- extra_args["verify"] = cert.decode()
114
+ extra_args["verify"] = ssl_context
115
elif verify_https == "disabled":
116
extra_args["verify"] = False
117
0 commit comments