Skip to content

Commit f174e27

Browse files
committed
Fix mock session for tests
HTTP body content is expected to be bytes, not unicode.
1 parent d196ae6 commit f174e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/influxdb/client_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
def _build_response_object(status_code=200, content=""):
1717
resp = requests.Response()
1818
resp.status_code = status_code
19-
resp._content = content
19+
resp._content = content.encode("utf8")
2020
return resp
2121

2222

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy