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

@@ -153,7 +153,7 @@ async def test_get_article_with_multiple_value_for_qs_age_must_failed(
assert resp.content_type == "application/json"
async def test_get_article_with_multiple_value_of_tags(aiohttp_client, loop):
async def test_get_article_with_multiple_value_of_tags(aiohttp_client, event_loop):
app = web.Application()
app.router.add_view("/article", ArticleView)
@@ -172,7 +172,7 @@ async def test_get_article_with_multiple_value_of_tags(aiohttp_client, loop):
assert resp.content_type == "application/json"
async def test_get_article_with_one_value_of_tags_must_be_a_list(aiohttp_client, loop):
async def test_get_article_with_one_value_of_tags_must_be_a_list(aiohttp_client, event_loop):
app = web.Application()
app.router.add_view("/article", ArticleView)
@@ -191,7 +191,7 @@ async def test_get_article_with_one_value_of_tags_must_be_a_list(aiohttp_client,
assert resp.content_type == "application/json"
async def test_get_article_without_required_field_page(aiohttp_client, loop):
async def test_get_article_without_required_field_page(aiohttp_client, event_loop):
app = web.Application()
app.router.add_view("/article", ArticleViewWithPaginationGroup)
@@ -210,7 +210,7 @@ async def test_get_article_without_required_field_page(aiohttp_client, loop):
assert resp.content_type == "application/json"
async def test_get_article_with_page(aiohttp_client, loop):
async def test_get_article_with_page(aiohttp_client, event_loop):
app = web.Application()
app.router.add_view("/article", ArticleViewWithPaginationGroup)
@@ -222,7 +222,7 @@ async def test_get_article_with_page(aiohttp_client, loop):
assert resp.content_type == "application/json"
async def test_get_article_with_page_and_page_size(aiohttp_client, loop):
async def test_get_article_with_page_and_page_size(aiohttp_client, event_loop):
app = web.Application()
app.router.add_view("/article", ArticleViewWithPaginationGroup)
@@ -236,7 +236,7 @@ async def test_get_article_with_page_and_page_size(aiohttp_client, loop):
assert resp.content_type == "application/json"
async def test_get_article_with_page_and_wrong_page_size(aiohttp_client, loop):
async def test_get_article_with_page_and_wrong_page_size(aiohttp_client, event_loop):
app = web.Application()
app.router.add_view("/article", ArticleViewWithPaginationGroup)