Skip to content

Commit 093592f

Browse files
author
Andrei Neagu
committed
moved fixture
1 parent 4d4a274 commit 093592f

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

packages/pytest-simcore/src/pytest_simcore/long_running_tasks.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/pytest-simcore/src/pytest_simcore/redis_service.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88

99
import pytest
1010
import tenacity
11+
from fakeredis import FakeAsyncRedis
1112
from pytest_mock import MockerFixture
1213
from redis.asyncio import Redis, from_url
14+
from servicelib.redis import _client
1315
from settings_library.basic_types import PortInt
1416
from settings_library.redis import RedisDatabase, RedisSettings
1517
from tenacity.before_sleep import before_sleep_log
@@ -121,3 +123,8 @@ def mock_redis_socket_timeout(mocker: MockerFixture) -> None:
121123
mocker.patch(
122124
"servicelib.redis._client.DEFAULT_SOCKET_TIMEOUT", timedelta(seconds=0.25)
123125
)
126+
127+
128+
@pytest.fixture
129+
async def use_in_memory_redis(mocker: MockerFixture) -> None:
130+
mocker.patch.object(_client, "aioredis", FakeAsyncRedis)

services/director-v2/tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"pytest_simcore.faker_projects_data",
4949
"pytest_simcore.faker_users_data",
5050
"pytest_simcore.logging",
51-
"pytest_simcore.long_running_tasks",
5251
"pytest_simcore.minio_service",
5352
"pytest_simcore.postgres_service",
5453
"pytest_simcore.pydantic_models",

services/dynamic-sidecar/tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"pytest_simcore.docker_swarm",
4242
"pytest_simcore.faker_users_data",
4343
"pytest_simcore.logging",
44-
"pytest_simcore.long_running_tasks",
4544
"pytest_simcore.minio_service",
4645
"pytest_simcore.postgres_service",
4746
"pytest_simcore.pytest_global_environs",

0 commit comments

Comments
 (0)