diff --git a/setup.cfg b/setup.cfg index bdcf8c48..7a6654ce 100644 --- a/setup.cfg +++ b/setup.cfg @@ -53,9 +53,9 @@ lint = mypy >= 1.5.0 types-redis tests = - pytest==8.3.3 - pytest-asyncio==0.24.0 - pytest-cov==6.0.0 + pytest==8.4.1 + pytest-asyncio==1.1.0 + pytest-cov==6.2.1 pytest-randomly==3.16.0 pytest-rerunfailures==15.1 hypothesis==6.135.29 diff --git a/tests/test_intergations/test_aiohttp.py b/tests/test_intergations/test_aiohttp.py index 0a7abcfc..9c67f93f 100644 --- a/tests/test_intergations/test_aiohttp.py +++ b/tests/test_intergations/test_aiohttp.py @@ -1,6 +1,8 @@ +import asyncio from datetime import timedelta import pytest +import pytest_asyncio from cashews import mem @@ -8,9 +10,9 @@ # just an alias, required by aiohttp -@pytest.fixture -def loop(event_loop): - return event_loop +@pytest_asyncio.fixture() +async def loop(): + return asyncio.get_running_loop() @pytest.fixture(name="app")