Skip to content

Commit

Permalink
Correct failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekj117 committed Jul 8, 2020
1 parent ce9fcca commit 5a0b46f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion securedrop/tests/test_journalist.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,8 @@ def test_admin_add_user_with_invalid_username(journalist_app, test_admin):
password=VALID_PASSWORD,
is_admin=None))

assert "Invalid username" in resp.data.decode('utf-8')
assert "This username is invalid because it is reserved for internal use by the software." \
in resp.data.decode('utf-8')


def test_deleted_user_cannot_login(journalist_app):
Expand Down

0 comments on commit 5a0b46f

Please sign in to comment.