diff --git a/backend/tests/teachers_test.py b/backend/tests/teachers_test.py index 74b12a0e..e76d29fa 100644 --- a/backend/tests/teachers_test.py +++ b/backend/tests/teachers_test.py @@ -15,7 +15,7 @@ def setUp(self) -> None: def test_create_teacher_bad_request(self) -> None: response = self.app.post("/teachers", data={}) assert response.status_code == HTTPStatus.BAD_REQUEST - assert "error" in response.text + assert "error" in json.loads(response.text) def test_create_teacher_success(self) -> None: teacher_data = {"name": "Bart De Bruyn"}