File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
services/dynamic-sidecar/tests/unit Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 4545)
4646from simcore_service_dynamic_sidecar .modules .system_monitor ._disk_usage import (
4747 DiskUsageMonitor ,
48+ MountPathCategory ,
4849)
4950from socketio import AsyncServer
5051from 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 ),
You can’t perform that action at this time.
0 commit comments