File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
packages/pytest-simcore/src/pytest_simcore Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 1111from fakeredis import FakeAsyncRedis
1212from pytest_mock import MockerFixture
1313from redis .asyncio import Redis , from_url
14- from servicelib .redis import _client
1514from settings_library .basic_types import PortInt
1615from settings_library .redis import RedisDatabase , RedisSettings
1716from tenacity .before_sleep import before_sleep_log
@@ -127,5 +126,5 @@ def mock_redis_socket_timeout(mocker: MockerFixture) -> None:
127126
128127@pytest .fixture
129128async def use_in_memory_redis (mocker : MockerFixture ) -> RedisSettings :
130- mocker .patch . object ( _client , "aioredis " , FakeAsyncRedis )
129+ mocker .patch ( "redis.asyncio.from_url " , FakeAsyncRedis )
131130 return RedisSettings ()
You can’t perform that action at this time.
0 commit comments