Skip to content

Commit db32c61

Browse files
committed
Fix encoding in test
1 parent dcf21d3 commit db32c61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration/models/reddit/test_subreddit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ def patch_request(url, *args, **kwargs):
515515
if "https://reddit-uploaded-media.s3-accelerate.amazonaws.com" in url:
516516
response = requests.Response()
517517
response._content = mock_data.encode("utf-8")
518+
response.encoding = "utf-8"
518519
response.status_code = 400
519520
return response
520521
return _post(url, *args, **kwargs)

0 commit comments

Comments
 (0)