From d54c5fc5b25c2883407120b8910f5bdb9b8053b3 Mon Sep 17 00:00:00 2001 From: Leenday Date: Wed, 21 Jun 2023 21:21:53 +0600 Subject: [PATCH] fix test. Otherwise WrapperTestResponse will assert --- flask_exercises/test_flask_excercises.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_exercises/test_flask_excercises.py b/flask_exercises/test_flask_excercises.py index e06f3be..a989ff1 100644 --- a/flask_exercises/test_flask_excercises.py +++ b/flask_exercises/test_flask_excercises.py @@ -58,7 +58,7 @@ def test_unprocessable_entity(self) -> None: ) assert response.status_code == HTTPStatus.UNPROCESSABLE_ENTITY - assert response == {"errors": {"name": "This field is required"}} + assert response.get_json() == {"errors": {"name": "This field is required"}} @pytest.mark.skip def test_get(self) -> None: