fix: update tests

This commit is contained in:
Georg K
2022-07-28 01:53:23 +03:00
parent 9d488db276
commit 76dd0106be
6 changed files with 17 additions and 13 deletions

View File

@@ -44,6 +44,7 @@ async def test_post_an_article_with_wrong_type_field_should_return_an_error_mess
client = await aiohttp_client(app)
resp = await client.post("/article", json={"name": "foo", "nb_page": "foo"})
a = await resp.text()
assert resp.status == 400
assert resp.content_type == "application/json"
assert await resp.json() == [