From 69516ead9346549427181580c4f68cb3eeda6a3a Mon Sep 17 00:00:00 2001 From: Vincent Maillol Date: Sun, 4 Oct 2020 12:49:14 +0200 Subject: [PATCH] fix unittest --- tests/test_validation_body.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):