diff --git a/tests/test_validation_body.py b/tests/test_validation_body.py index bf279f8..9a7b14b 100644 --- a/tests/test_validation_body.py +++ b/tests/test_validation_body.py @@ -12,7 +12,7 @@ class ArticleModel(BaseModel): class ArticleView(PydanticView): async def post(self, article: ArticleModel): - return web.Response(article.dict()) + return web.json_response(article.dict()) async def test_post_an_article_without_required_field_should_return_an_error_message(aiohttp_client, loop):