File tree Expand file tree Collapse file tree 3 files changed +2
-21
lines changed
services/director-v2/tests/unit Expand file tree Collapse file tree 3 files changed +2
-21
lines changed Original file line number Diff line number Diff line change 1515from models_library .service_settings_labels import SimcoreServiceLabels
1616from pytest_mock .plugin import MockerFixture
1717from pytest_simcore .helpers .typing_env import EnvVarsDict
18- from settings_library .redis import RedisSettings
1918from simcore_service_director_v2 .models .dynamic_services_scheduler import SchedulerData
2019from simcore_service_director_v2 .modules .dynamic_sidecar .errors import (
2120 DynamicSidecarNotFoundError ,
2524)
2625from starlette .testclient import TestClient
2726
28- pytest_simcore_core_services_selection = [
29- "redis" ,
30- ]
31-
3227
3328@pytest .fixture
3429def mock_env (
3530 mock_exclusive : None ,
3631 disable_rabbitmq : None ,
3732 disable_postgres : None ,
38- redis_service : RedisSettings ,
3933 mock_env : EnvVarsDict ,
4034 monkeypatch : pytest .MonkeyPatch ,
4135 docker_swarm : None ,
Original file line number Diff line number Diff line change 2323from pytest_mock .plugin import MockerFixture
2424from pytest_simcore .helpers .typing_env import EnvVarsDict
2525from respx .router import MockRouter
26- from settings_library .redis import RedisSettings
2726from simcore_service_director_v2 .models .dynamic_services_scheduler import (
2827 DockerContainerInspect ,
2928 DynamicSidecarStatus ,
5756log = logging .getLogger (__name__ )
5857
5958
60- pytest_simcore_core_services_selection = [
61- "postgres" ,
62- "redis" ,
63- ]
64- pytest_simcore_ops_services_selection = [
65- "adminer" ,
66- ]
59+ pytest_simcore_core_services_selection = ["postgres" ]
60+ pytest_simcore_ops_services_selection = ["adminer" ]
6761
6862
6963def get_url (dynamic_sidecar_endpoint : str , postfix : str ) -> str :
@@ -134,7 +128,6 @@ def mock_env(
134128 disable_postgres : None ,
135129 disable_rabbitmq : None ,
136130 mock_env : EnvVarsDict ,
137- redis_service : RedisSettings ,
138131 monkeypatch : pytest .MonkeyPatch ,
139132 simcore_services_network_name : str ,
140133 mock_docker_api : None ,
Original file line number Diff line number Diff line change 2020from pytest_simcore .helpers .monkeypatch_envs import setenvs_from_dict
2121from pytest_simcore .helpers .typing_env import EnvVarsDict
2222from respx .router import MockRouter
23- from settings_library .redis import RedisSettings
2423from simcore_service_director_v2 .models .dynamic_services_scheduler import SchedulerData
2524from simcore_service_director_v2 .modules .dynamic_sidecar .api_client ._public import (
2625 SidecarsClient ,
3938 DynamicSidecarsScheduler ,
4039)
4140
42- pytest_simcore_core_services_selection = [
43- "redis" ,
44- ]
45-
4641SCHEDULER_INTERVAL_SECONDS : Final [float ] = 0.1
4742
4843
@@ -51,7 +46,6 @@ def mock_env(
5146 disable_postgres : None ,
5247 disable_rabbitmq : None ,
5348 mock_env : EnvVarsDict ,
54- redis_service : RedisSettings ,
5549 monkeypatch : pytest .MonkeyPatch ,
5650 simcore_services_network_name : str ,
5751 docker_swarm : None ,
You can’t perform that action at this time.
0 commit comments