Skip to content

Commit

Permalink
Check for error message in the response
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-herrmann committed Oct 3, 2024
1 parent b1be0bd commit 525e753
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/endpoints_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ def test_user_agent_header(
assert response.status_code == status.HTTP_200_OK
else:
assert response.status_code == status.HTTP_400_BAD_REQUEST
assert response.json()["detail"] == "User-Agent header is required"

0 comments on commit 525e753

Please sign in to comment.