Loading user/tests/assign_users_manager_tests.py +3 −3 Original line number Diff line number Diff line Loading @@ -178,7 +178,7 @@ class AssignUsersManagerTests(TestCase): ) # team does not exist with self.assertRaises(SomeModelsNotFoundException) as _: with self.assertRaises(ModelNotFoundException) as _: AssignUsersManager.remove_from_team( [str(self.trainee1.id)], 1273969 ) Loading Loading @@ -295,8 +295,8 @@ class AssignUsersManagerTests(TestCase): ) # exercise does not exist # similar reasoning as above but it is due to the non-existent exercise with self.assertRaises(UserOperationException) as _: # due to the check of exercise existence, the ModelNotFoundException is thrown here with self.assertRaises(ModelNotFoundException) as _: AssignUsersManager.remove_instructors_from_exercise( [str(self.instructor2.id)], 1273969, self.instructor ) Loading Loading
user/tests/assign_users_manager_tests.py +3 −3 Original line number Diff line number Diff line Loading @@ -178,7 +178,7 @@ class AssignUsersManagerTests(TestCase): ) # team does not exist with self.assertRaises(SomeModelsNotFoundException) as _: with self.assertRaises(ModelNotFoundException) as _: AssignUsersManager.remove_from_team( [str(self.trainee1.id)], 1273969 ) Loading Loading @@ -295,8 +295,8 @@ class AssignUsersManagerTests(TestCase): ) # exercise does not exist # similar reasoning as above but it is due to the non-existent exercise with self.assertRaises(UserOperationException) as _: # due to the check of exercise existence, the ModelNotFoundException is thrown here with self.assertRaises(ModelNotFoundException) as _: AssignUsersManager.remove_instructors_from_exercise( [str(self.instructor2.id)], 1273969, self.instructor ) Loading