fix: test loop fixture rename to event_loop

This commit is contained in:
Georg K
2022-07-28 01:58:33 +03:00
parent df2ef1adc0
commit 69141302cf
5 changed files with 17 additions and 17 deletions

View File

@@ -37,14 +37,14 @@ class ArticleView(PydanticView):
async def test_post_an_article_with_wrong_type_field_should_return_an_error_message(
aiohttp_client, loop
aiohttp_client, event_loop
):
app = web.Application()
app.router.add_view("/article", ArticleView)
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() == [