mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-08 16:53:23 +00:00
Fix integration with httpx>0.15.0
This commit is contained in:
committed by
Kevin McCarthy
parent
1d0fdbaa13
commit
a172207df0
@@ -4,4 +4,4 @@
|
|||||||
# If you are getting an INVOCATION ERROR for this script then there is
|
# If you are getting an INVOCATION ERROR for this script then there is
|
||||||
# a good chance you are running on Windows.
|
# a good chance you are running on Windows.
|
||||||
# You can and should use WSL for running tox on Windows when it calls bash scripts.
|
# You can and should use WSL for running tox on Windows when it calls bash scripts.
|
||||||
REQUESTS_CA_BUNDLE=`python -m pytest_httpbin.certs` py.test $*
|
REQUESTS_CA_BUNDLE=`python -m pytest_httpbin.certs` pytest $*
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ def _from_serialized_response(request, serialized_response, history=None):
|
|||||||
response = httpx.Response(
|
response = httpx.Response(
|
||||||
status_code=serialized_response.get("status_code"),
|
status_code=serialized_response.get("status_code"),
|
||||||
request=request,
|
request=request,
|
||||||
http_version=serialized_response.get("http_version"),
|
|
||||||
headers=_from_serialized_headers(serialized_response.get("headers")),
|
headers=_from_serialized_headers(serialized_response.get("headers")),
|
||||||
content=content,
|
content=content,
|
||||||
history=history or [],
|
history=history or [],
|
||||||
|
|||||||
Reference in New Issue
Block a user