-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: fix accessing user_id from Member in tests (#73587)
<!-- Describe your PR here. -->
- Loading branch information
1 parent
3240680
commit eef2e2c
Showing
1 changed file
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]" | ||
|
@@ -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]" | ||
|