File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed
services/dynamic-sidecar/tests/unit Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change 1212from async_asgi_testclient import TestClient
1313from fastapi import FastAPI
1414from pytest_mock .plugin import MockerFixture
15- from pytest_simcore .helpers .monkeypatch_envs import EnvVarsDict , setenvs_from_dict
15+ from pytest_simcore .helpers .monkeypatch_envs import EnvVarsDict
1616from simcore_service_dynamic_sidecar .core .application import AppState , create_app
1717from simcore_service_dynamic_sidecar .core .docker_compose_utils import (
1818 docker_compose_down ,
@@ -127,24 +127,6 @@ async def cleanup_containers(app: FastAPI) -> AsyncIterator[None]:
127127 await docker_compose_down (app_state .compose_spec , app_state .settings )
128128
129129
130- @pytest .fixture
131- def mock_rabbitmq_envs (
132- mock_core_rabbitmq : dict [str , AsyncMock ],
133- monkeypatch : pytest .MonkeyPatch ,
134- mock_environment : EnvVarsDict ,
135- ) -> EnvVarsDict :
136- setenvs_from_dict (
137- monkeypatch ,
138- {
139- "RABBIT_HOST" : "mocked_host" ,
140- "RABBIT_SECURE" : "false" ,
141- "RABBIT_USER" : "mocked_user" ,
142- "RABBIT_PASSWORD" : "mocked_password" ,
143- },
144- )
145- return mock_environment
146-
147-
148130@pytest .fixture
149131def port_notifier (app : FastAPI ) -> PortNotifier :
150132 settings : ApplicationSettings = app .state .settings
You can’t perform that action at this time.
0 commit comments