From 2bb13a4677c84e07ec08526a7e4a7bc11f0dc878 Mon Sep 17 00:00:00 2001 From: habara keigo Date: Fri, 7 Feb 2025 18:04:40 +0900 Subject: [PATCH] NO-ISSUE Fix tests broken by pytest-asyncio breaking-changes --- tests/async_api/test_get_message_content.py | 2 +- tests/async_api/test_get_profile.py | 2 +- tests/test_aiohttp_async_http_client.py | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/async_api/test_get_message_content.py b/tests/async_api/test_get_message_content.py index e2a550c22..cdf08b3c4 100644 --- a/tests/async_api/test_get_message_content.py +++ b/tests/async_api/test_get_message_content.py @@ -20,7 +20,7 @@ from linebot.aiohttp_async_http_client import AiohttpAsyncHttpClient -async def test_get(aiohttp_client, loop): +async def test_get(aiohttp_client): msg = ''.join('Hello, world' for i in range(1000)) async def hello(request): diff --git a/tests/async_api/test_get_profile.py b/tests/async_api/test_get_profile.py index 1b93f1d54..709d7a3b1 100644 --- a/tests/async_api/test_get_profile.py +++ b/tests/async_api/test_get_profile.py @@ -20,7 +20,7 @@ from linebot.aiohttp_async_http_client import AiohttpAsyncHttpClient -async def test_async_profile(aiohttp_client, loop): +async def test_async_profile(aiohttp_client): expect = { 'displayName': 'test', 'userId': 'test', diff --git a/tests/test_aiohttp_async_http_client.py b/tests/test_aiohttp_async_http_client.py index 0e35493e6..0bc1ca307 100644 --- a/tests/test_aiohttp_async_http_client.py +++ b/tests/test_aiohttp_async_http_client.py @@ -17,7 +17,7 @@ from linebot.aiohttp_async_http_client import AiohttpAsyncHttpClient -async def test_get(aiohttp_client, loop): +async def test_get(aiohttp_client): async def hello(request): return web.Response(text='Hello, world') @@ -31,7 +31,7 @@ async def hello(request): assert 'Hello, world' in text -async def test_get_json(aiohttp_client, loop): +async def test_get_json(aiohttp_client): async def hello(request): return web.json_response({'test': 'Hello, world'}) @@ -44,7 +44,7 @@ async def hello(request): assert 'Hello, world' == json['test'] -async def test_get_iter(aiohttp_client, loop): +async def test_get_iter(aiohttp_client): async def hello(request): return web.Response(text='Hello, world') @@ -61,7 +61,7 @@ async def hello(request): assert 'Hello, world' in buffer -async def test_post(aiohttp_client, loop): +async def test_post(aiohttp_client): async def hello(request): return web.Response(text='Hello, world') @@ -75,7 +75,7 @@ async def hello(request): assert 'Hello, world' in text -async def test_delete(aiohttp_client, loop): +async def test_delete(aiohttp_client): async def hello(request): return web.Response(text='Hello, world') @@ -89,7 +89,7 @@ async def hello(request): assert 'Hello, world' in text -async def test_put(aiohttp_client, loop): +async def test_put(aiohttp_client): async def hello(request): return web.Response(text='Hello, world')