-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use prettyjson and disable gzip with betamax
- Loading branch information
Showing
3 changed files
with
74 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 64 additions & 1 deletion
65
...nit/network/cassettes/test_network::test_requests_session_network_works_with_betamax.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,64 @@ | ||
{"http_interactions": [{"request": {"body": {"encoding": "utf-8", "string": ""}, "headers": {"User-Agent": ["python-requests/2.18.4"], "Accept-Encoding": ["gzip, deflate"], "Accept": ["*/*"], "Connection": ["keep-alive"]}, "method": "GET", "uri": "https://api.box.com/2.0/users/me"}, "response": {"body": {"encoding": null, "string": ""}, "headers": {"Server": ["ATS"], "Date": ["Fri, 25 Aug 2017 02:49:37 GMT"], "Content-Length": ["0"], "Strict-Transport-Security": ["max-age=31536000; includeSubDomains"], "WWW-Authenticate": ["Bearer realm=\"Service\", error=\"invalid_request\", error_description=\"The access token was not found.\""], "Age": ["0"], "Connection": ["keep-alive"]}, "status": {"code": 401, "message": "Unauthorized"}, "url": "https://api.box.com/2.0/users/me"}, "recorded_at": "2017-08-25T02:49:37"}], "recorded_with": "betamax/0.8.0"} | ||
{ | ||
"http_interactions": [ | ||
{ | ||
"recorded_at": "2017-08-25T21:21:46", | ||
"request": { | ||
"body": { | ||
"encoding": "utf-8", | ||
"string": "" | ||
}, | ||
"headers": { | ||
"Accept": [ | ||
"*/*" | ||
], | ||
"Accept-Encoding": [ | ||
"gzip, deflate" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"User-Agent": [ | ||
"python-requests/2.18.4" | ||
] | ||
}, | ||
"method": "GET", | ||
"uri": "https://api.box.com/2.0/users/me" | ||
}, | ||
"response": { | ||
"body": { | ||
"encoding": null, | ||
"string": "" | ||
}, | ||
"headers": { | ||
"Age": [ | ||
"0" | ||
], | ||
"Connection": [ | ||
"keep-alive" | ||
], | ||
"Content-Length": [ | ||
"0" | ||
], | ||
"Date": [ | ||
"Fri, 25 Aug 2017 21:21:45 GMT" | ||
], | ||
"Server": [ | ||
"ATS" | ||
], | ||
"Strict-Transport-Security": [ | ||
"max-age=31536000; includeSubDomains" | ||
], | ||
"WWW-Authenticate": [ | ||
"Bearer realm=\"Service\", error=\"invalid_request\", error_description=\"The access token was not found.\"" | ||
] | ||
}, | ||
"status": { | ||
"code": 401, | ||
"message": "Unauthorized" | ||
}, | ||
"url": "https://api.box.com/2.0/users/me" | ||
} | ||
} | ||
], | ||
"recorded_with": "betamax/0.8.0" | ||
} |