Skip to content

Commit

Permalink
Fix linting error.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 24, 2023
1 parent a3ad567 commit 10d0473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion responses/tests/test_matchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_json_params_matcher_json_list_empty():

def test_json_params_matcher_body_is_gzipped():
json_a = {"foo": 42, "bar": None}
json_b = gzip.compress('{"foo": 42, "bar": null}'.encode("utf-8"))
json_b = gzip.compress(b'{"foo": 42, "bar": null}')
mock_request = Mock(body=json_b)
result = matchers.json_params_matcher(json_a)(mock_request)
assert result == (True, "")
Expand Down

0 comments on commit 10d0473

Please sign in to comment.