Skip to content

Commit

Permalink
ref: fix accessing user_id from Member in tests (#73587)
Browse files Browse the repository at this point in the history
<!-- Describe your PR here. -->
  • Loading branch information
asottile-sentry authored Jul 1, 2024
1 parent 3240680 commit eef2e2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/sentry/runner/commands/test_createuser.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def test_single_org(self):
with assume_test_silo_mode(SiloMode.REGION):
assert OrganizationMember.objects.count() == 1
member = OrganizationMember.objects.all()[0]
assert member.user_id is not None
u = user_service.get_user(user_id=member.user_id)
assert u
assert u.email == "[email protected]"
Expand All @@ -80,6 +81,7 @@ def test_single_org_superuser(self):
with assume_test_silo_mode(SiloMode.REGION):
assert OrganizationMember.objects.count() == 1
member = OrganizationMember.objects.all()[0]
assert member.user_id is not None
u = user_service.get_user(user_id=member.user_id)
assert u
assert u.email == "[email protected]"
Expand Down

0 comments on commit eef2e2c

Please sign in to comment.