1
0
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:
Jair Henrique
2020-10-05 09:05:55 -03:00
committed by Kevin McCarthy
parent 1d0fdbaa13
commit a172207df0
2 changed files with 1 additions and 2 deletions

View File

@@ -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 $*

View File

@@ -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 [],