Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 96c81b2

Browse files
Fix tests
1 parent 09c9e1d commit 96c81b2

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

tests/test_functional.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -448,13 +448,8 @@ def test_login_exceptions(self, idp, action, exception, user):
448448
idp.delete_user(user_id=user.id)
449449

450450
def test_user_not_found_exception(self, idp):
451+
with pytest.raises(UserNotFound): # Expect the get to fail due to a non existent user
452+
idp.get_user(user_id='abc')
451453

452-
with pytest.raises(
453-
UserNotFound
454-
): # Expect the get to fail due to a non existant user
455-
u = idp.get_user(user_id="some_non_existant_user_id")
456-
457-
with pytest.raises(
458-
UserNotFound
459-
): # Expect the get to fail due to a failed query search
460-
u = idp.get_user(username="some_non_existant_username")
454+
with pytest.raises(UserNotFound): # Expect the get to fail due to a failed query search
455+
idp.get_user(query='username="some_non_existant_username"')

0 commit comments

Comments
 (0)