Verified Commit bdfbf25b authored by Richard Glosner's avatar Richard Glosner
Browse files

update tests

parent e2ee91f9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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
            )
@@ -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
            )