diff --git a/backend/pigeonhole/tests/test_views/test_user/test_teacher.py b/backend/pigeonhole/tests/test_views/test_user/test_teacher.py index e44e80c5..326f1926 100644 --- a/backend/pigeonhole/tests/test_views/test_user/test_teacher.py +++ b/backend/pigeonhole/tests/test_views/test_user/test_teacher.py @@ -60,7 +60,7 @@ def test_update_self(self): 'course': [self.course.course_id] } response = self.client.put(f'{API_ENDPOINT}{self.teacher.id}/', updated_data, format='json') - self.assertEqual(response.status_code, status.HTTP_200_OK) + self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN) def test_delete_self(self): response = self.client.delete(f'{API_ENDPOINT}{self.teacher.id}/')