Skip to content

Commit

Permalink
Ignore sporadic role ordering mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
marksparkza committed Mar 15, 2024
1 parent 1edeaa5 commit 313a5d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,13 @@ def test_user_info():
user = UserFactory(roles=(role1, role2, role3, role4))

actual_user_info = get_user_info(user.id)
actual_user_info.roles = set(actual_user_info.roles)
expected_user_info = UserInfo(
sub=user.id,
email=user.email,
email_verified=user.verified,
name=user.name,
picture=user.picture,
roles=[role1.id, role2.id, role3.id, role4.id],
roles={role1.id, role2.id, role3.id, role4.id},
)
assert actual_user_info == expected_user_info

0 comments on commit 313a5d6

Please sign in to comment.