Fixing some tests.
This commit is contained in:
parent
0a32c57e45
commit
fcc593ea6b
|
@ -21,7 +21,7 @@ class TestUserService(BaseTest):
|
|||
) -> None:
|
||||
"""Test_waiting_group_assignments"""
|
||||
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")
|
||||
assert initiator_user.groups[0] == aTestGroup
|
||||
|
||||
|
@ -33,7 +33,7 @@ class TestUserService(BaseTest):
|
|||
) -> None:
|
||||
"""Test_waiting_group_assignments"""
|
||||
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")
|
||||
assert initiator_user.groups[0] == everybody_group
|
||||
|
||||
|
@ -46,5 +46,5 @@ class TestUserService(BaseTest):
|
|||
"""Test_waiting_group_assignments"""
|
||||
initiator_user = self.find_or_create_user("initiator_user")
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue