Skip to content

Commit

Permalink
Update test/test_auth.py
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Jones <[email protected]>
  • Loading branch information
keiranjprice101 and Pasarus authored Jun 13, 2024
1 parent 0ba3918 commit 154964b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_authenticate_success(mock_post):

@patch("requests.post")
def test_authenticate_bad_credentials(mock_post):
mock_response = Mock(status_code=401, json=lambda: {})
mock_response = Mock(status_code=HTTPStatus.UNAUTHORIZED, json=lambda: {})
mock_post.return_value = mock_response

credentials = UserCredentials(username="invalid_user", password="invalid_password") # noqa: S106
Expand Down

0 comments on commit 154964b

Please sign in to comment.