Skip to content

Commit 1401dd5

Browse files
author
Andrei Neagu
committed
using better mock
1 parent e273493 commit 1401dd5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services/dynamic-sidecar/tests/unit/test_api_rest_workflow_service_metrics.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ async def app(app: FastAPI) -> AsyncIterable[FastAPI]:
106106

107107
@pytest.fixture
108108
async def httpx_async_client(
109+
mock_ensure_read_permissions_on_user_service_data: None,
109110
app: FastAPI,
110111
backend_url: AnyHttpUrl,
111112
ensure_external_volumes: tuple[DockerVolume],
@@ -201,7 +202,6 @@ async def _wait_for_containers_to_be_running(app: FastAPI) -> None:
201202

202203

203204
async def test_service_starts_and_closes_as_expected(
204-
mock_ensure_read_permissions_on_user_service_data: None,
205205
mock_core_rabbitmq: dict[str, AsyncMock],
206206
app: FastAPI,
207207
httpx_async_client: AsyncClient,
@@ -385,7 +385,6 @@ async def _mocked_get_container_states(
385385

386386
@pytest.mark.parametrize("expected_platform_state", SimcorePlatformStatus)
387387
async def test_user_services_crash_when_running(
388-
mock_ensure_read_permissions_on_user_service_data: None,
389388
mock_core_rabbitmq: dict[str, AsyncMock],
390389
app: FastAPI,
391390
httpx_async_client: AsyncClient,

0 commit comments

Comments
 (0)