Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests broken by pytest-asyncio breaking-changes #754

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/async_api/test_get_message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion tests/async_api/test_get_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
12 changes: 6 additions & 6 deletions tests/test_aiohttp_async_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand All @@ -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'})

Expand All @@ -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')

Expand All @@ -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')

Expand All @@ -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')

Expand All @@ -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')

Expand Down