Force HttpMock to read content from file as bytes · mgherm/google-api-python-client@26b0100 · GitHub
Skip to content

Commit 26b0100

Browse files
committed
Force HttpMock to read content from file as bytes
1 parent b105fbe commit 26b0100

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

‎googleapiclient/http.py‎

Lines changed: 1 addition & 1 deletion

‎tests/data/bad_request.json‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"error": {
3+
"errors": [
4+
{
5+
"domain": "usageLimits",
6+
"reason": "keyInvalid",
7+
"message": "Bad Request"
8+
}
9+
],
10+
"code": 400,
11+
"message": "Bad Request"
12+
}
13+
}

‎tests/test_http.py‎

Lines changed: 11 additions & 0 deletions

0 commit comments

Comments
 (0)