Skip to content

Commit 66dafb0

Browse files
committed
mock the rabbit
1 parent ae6f571 commit 66dafb0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

services/storage/tests/conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,19 @@ async def storage_s3_bucket(app_settings: ApplicationSettings) -> str:
140140
return app_settings.STORAGE_S3.S3_BUCKET_NAME
141141

142142

143+
@pytest.fixture
144+
async def mock_rabbit_setup(mocker: MockerFixture) -> MockerFixture:
145+
mocker.patch("simcore_service_storage.core.application.setup_rabbitmq")
146+
mocker.patch("simcore_service_storage.core.application.setup_rpc_api_routes")
147+
return mocker
148+
149+
143150
@pytest.fixture
144151
def app_environment(
145152
mock_env_devel_environment: EnvVarsDict,
146153
monkeypatch: pytest.MonkeyPatch,
147154
external_envfile_dict: EnvVarsDict,
155+
mock_rabbit_setup: MockerFixture,
148156
) -> EnvVarsDict:
149157
if external_envfile_dict:
150158
delenvs_from_dict(monkeypatch, mock_env_devel_environment, raising=False)

0 commit comments

Comments
 (0)