Skip to content

Commit 8dd30fd

Browse files
authored
Fix tests broken by pytest-asyncio breaking-changes (#754)
Update `tests` not to declare `loop` argument
1 parent 68a6661 commit 8dd30fd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tests/async_api/test_get_message_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from linebot.aiohttp_async_http_client import AiohttpAsyncHttpClient
2121

2222

23-
async def test_get(aiohttp_client, loop):
23+
async def test_get(aiohttp_client):
2424
msg = ''.join('Hello, world' for i in range(1000))
2525

2626
async def hello(request):

tests/async_api/test_get_profile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from linebot.aiohttp_async_http_client import AiohttpAsyncHttpClient
2121

2222

23-
async def test_async_profile(aiohttp_client, loop):
23+
async def test_async_profile(aiohttp_client):
2424
expect = {
2525
'displayName': 'test',
2626
'userId': 'test',

tests/test_aiohttp_async_http_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from linebot.aiohttp_async_http_client import AiohttpAsyncHttpClient
1818

1919

20-
async def test_get(aiohttp_client, loop):
20+
async def test_get(aiohttp_client):
2121
async def hello(request):
2222
return web.Response(text='Hello, world')
2323

@@ -31,7 +31,7 @@ async def hello(request):
3131
assert 'Hello, world' in text
3232

3333

34-
async def test_get_json(aiohttp_client, loop):
34+
async def test_get_json(aiohttp_client):
3535
async def hello(request):
3636
return web.json_response({'test': 'Hello, world'})
3737

@@ -44,7 +44,7 @@ async def hello(request):
4444
assert 'Hello, world' == json['test']
4545

4646

47-
async def test_get_iter(aiohttp_client, loop):
47+
async def test_get_iter(aiohttp_client):
4848
async def hello(request):
4949
return web.Response(text='Hello, world')
5050

@@ -61,7 +61,7 @@ async def hello(request):
6161
assert 'Hello, world' in buffer
6262

6363

64-
async def test_post(aiohttp_client, loop):
64+
async def test_post(aiohttp_client):
6565
async def hello(request):
6666
return web.Response(text='Hello, world')
6767

@@ -75,7 +75,7 @@ async def hello(request):
7575
assert 'Hello, world' in text
7676

7777

78-
async def test_delete(aiohttp_client, loop):
78+
async def test_delete(aiohttp_client):
7979
async def hello(request):
8080
return web.Response(text='Hello, world')
8181

@@ -89,7 +89,7 @@ async def hello(request):
8989
assert 'Hello, world' in text
9090

9191

92-
async def test_put(aiohttp_client, loop):
92+
async def test_put(aiohttp_client):
9393
async def hello(request):
9494
return web.Response(text='Hello, world')
9595

0 commit comments

Comments
 (0)