Skip to content

Commit 190a008

Browse files
author
Andrei Neagu
committed
fixed broken test
1 parent f5b4a62 commit 190a008

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
)
4646
from simcore_service_dynamic_sidecar.modules.system_monitor._disk_usage import (
4747
DiskUsageMonitor,
48+
MountPathCategory,
4849
)
4950
from socketio import AsyncServer
5051
from tenacity import AsyncRetrying
@@ -155,11 +156,13 @@ async def on_service_status(data):
155156
"usage",
156157
[
157158
pytest.param({}, id="empty"),
158-
pytest.param({Path("/"): _get_mocked_disk_usage("1kb")}, id="one_entry"),
159+
pytest.param(
160+
{MountPathCategory.HOST: _get_mocked_disk_usage("1kb")}, id="one_entry"
161+
),
159162
pytest.param(
160163
{
161-
Path("/"): _get_mocked_disk_usage("1kb"),
162-
Path("/tmp"): _get_mocked_disk_usage("2kb"), # noqa: S108
164+
MountPathCategory.HOST: _get_mocked_disk_usage("1kb"),
165+
MountPathCategory.STATES_VOLUMES: _get_mocked_disk_usage("2kb"),
163166
},
164167
id="two_entries",
165168
),

0 commit comments

Comments
 (0)