Skip to content

Commit

Permalink
test: ensure returned user object is not None [scidsg#447]
Browse files Browse the repository at this point in the history
Suggested in review:
scidsg#447 (comment)

Co-authored-by: Jeremy Moore <jeremymoore@gmail.com>
  • Loading branch information
rmlibre and jeremywmoore committed Jul 31, 2024
1 parent df0b3c0 commit 0e4e5a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def test_change_password(client: FlaskClient) -> None:

# Log in the registered user
logged_in_user = login_user(client, username, original_password)
if logged_in_user is not None:
assert user.id == logged_in_user.id
assert logged_in_user is not None
assert user.id == logged_in_user.id

# Submit POST request to change the username & verify update was successful
response = client.post(
Expand Down

0 comments on commit 0e4e5a5

Please sign in to comment.