diff --git a/test/test.py b/test/test.py index 6a654fe..9fa0e7b 100644 --- a/test/test.py +++ b/test/test.py @@ -39,7 +39,7 @@ def test_create_answer(): body = {"user_id": 1, "answers": [{"question_id": 1, "alternative_id": 2}, { "question_id": 2, "alternative_id": 2}, {"question_id": 2, "alternative_id": 2}]} body = json.dumps(body) - response = client.post('/answer', data=body) + response = client.post('/answer', json=body) assert response.status_code == 201