Fixing some tests.

This commit is contained in:
Dan 2022-12-19 10:09:19 -05:00
parent 624811a7c0
commit 89377ea881
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ class TestUserService(BaseTest):
) -> None: ) -> None:
"""Test_waiting_group_assignments""" """Test_waiting_group_assignments"""
aTestGroup = GroupService.find_or_create_group("aTestGroup") aTestGroup = GroupService.find_or_create_group("aTestGroup")
UserService.add_group_assignment("initiator_user", aTestGroup) UserService.add_waiting_group_assignment("initiator_user", aTestGroup)
initiator_user = self.find_or_create_user("initiator_user") initiator_user = self.find_or_create_user("initiator_user")
assert initiator_user.groups[0] == aTestGroup assert initiator_user.groups[0] == aTestGroup
@ -33,7 +33,7 @@ class TestUserService(BaseTest):
) -> None: ) -> None:
"""Test_waiting_group_assignments""" """Test_waiting_group_assignments"""
everybody_group = GroupService.find_or_create_group("everybodyGroup") everybody_group = GroupService.find_or_create_group("everybodyGroup")
UserService.add_group_assignment(UserGroupAssignmentWaitingModel.MATCH_ALL_USERS, everybody_group) UserService.add_waiting_group_assignment(UserGroupAssignmentWaitingModel.MATCH_ALL_USERS, everybody_group)
initiator_user = self.find_or_create_user("initiator_user") initiator_user = self.find_or_create_user("initiator_user")
assert initiator_user.groups[0] == everybody_group assert initiator_user.groups[0] == everybody_group
@ -46,5 +46,5 @@ class TestUserService(BaseTest):
"""Test_waiting_group_assignments""" """Test_waiting_group_assignments"""
initiator_user = self.find_or_create_user("initiator_user") initiator_user = self.find_or_create_user("initiator_user")
everybody_group = GroupService.find_or_create_group("everybodyGroup") everybody_group = GroupService.find_or_create_group("everybodyGroup")
UserService.add_group_assignment(UserGroupAssignmentWaitingModel.MATCH_ALL_USERS, everybody_group) UserService.add_waiting_group_assignment(UserGroupAssignmentWaitingModel.MATCH_ALL_USERS, everybody_group)
assert initiator_user.groups[0] == everybody_group assert initiator_user.groups[0] == everybody_group