Skip to content

chore(deps): update dependency pytest to v8.4.0 #814

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

Merged
merged 2 commits into from
Jun 9, 2025
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
3 changes: 2 additions & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
pytest==8.3.5
pytest==8.4.0
pytest-pep8==1.0.6
pytest-cov==6.1.1
pytest-aiohttp==1.1.0
pytest-asyncio==1.0.0
responses==0.25.7
pytest_httpserver >= 1.1.2
3 changes: 3 additions & 0 deletions tests/async_api/test_get_message_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.

import pytest

from aiohttp import web

from linebot import (
Expand All @@ -20,6 +22,7 @@
from linebot.aiohttp_async_http_client import AiohttpAsyncHttpClient


@pytest.mark.asyncio
async def test_get(aiohttp_client):
msg = ''.join('Hello, world' for i in range(1000))

Expand Down
3 changes: 3 additions & 0 deletions tests/async_api/test_get_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.

import pytest

from aiohttp import web

from linebot import (
Expand All @@ -20,6 +22,7 @@
from linebot.aiohttp_async_http_client import AiohttpAsyncHttpClient


@pytest.mark.asyncio
async def test_async_profile(aiohttp_client):
expect = {
'displayName': 'test',
Expand Down
7 changes: 7 additions & 0 deletions tests/test_aiohttp_async_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
# License for the specific language governing permissions and limitations
# under the License.

import pytest
from aiohttp import web

from linebot.aiohttp_async_http_client import AiohttpAsyncHttpClient


@pytest.mark.asyncio
async def test_get(aiohttp_client):
async def hello(request):
return web.Response(text='Hello, world')
Expand All @@ -31,6 +33,7 @@ async def hello(request):
assert 'Hello, world' in text


@pytest.mark.asyncio
async def test_get_json(aiohttp_client):
async def hello(request):
return web.json_response({'test': 'Hello, world'})
Expand All @@ -44,6 +47,7 @@ async def hello(request):
assert 'Hello, world' == json['test']


@pytest.mark.asyncio
async def test_get_iter(aiohttp_client):
async def hello(request):
return web.Response(text='Hello, world')
Expand All @@ -61,6 +65,7 @@ async def hello(request):
assert 'Hello, world' in buffer


@pytest.mark.asyncio
async def test_post(aiohttp_client):
async def hello(request):
return web.Response(text='Hello, world')
Expand All @@ -75,6 +80,7 @@ async def hello(request):
assert 'Hello, world' in text


@pytest.mark.asyncio
async def test_delete(aiohttp_client):
async def hello(request):
return web.Response(text='Hello, world')
Expand All @@ -89,6 +95,7 @@ async def hello(request):
assert 'Hello, world' in text


@pytest.mark.asyncio
async def test_put(aiohttp_client):
async def hello(request):
return web.Response(text='Hello, world')
Expand Down