Skip to content

Commit

Permalink
check invalid json message
Browse files Browse the repository at this point in the history
  • Loading branch information
lmossman committed Oct 23, 2024
1 parent 818e843 commit a4946f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ def test_given_invalid_json_body_parse_response_error_message_returns_none():
response = requests.Response()
response._content = b"invalid json body"
error_message = JsonErrorMessageParser().parse_response_error_message(response)
assert error_message is None
assert error_message == "invalid json body"

0 comments on commit a4946f3

Please sign in to comment.