File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 22
33from dataclasses import dataclass
44from enum import StrEnum
5+ from pathlib import PurePath
56
67from .base import Options , Request , ResponseData
78
@@ -72,7 +73,7 @@ class DataDisk(ResponseData):
7273 serial : str
7374 size : int
7475 id : str
75- dev_path : str
76+ dev_path : PurePath
7677
7778
7879@dataclass (frozen = True , slots = True )
Original file line number Diff line number Diff line change 11"""Test OS supervisor client."""
22
3+ from pathlib import PurePath
4+
35from aioresponses import aioresponses
46from yarl import URL
57
@@ -84,7 +86,7 @@ async def test_os_list_data_disks(
8486 assert datadisks .disks [0 ].model == "SSK Storage"
8587 assert datadisks .disks [0 ].serial == "DF123"
8688 assert datadisks .disks [0 ].name == "SSK SSK Storage (DF123)"
87- assert datadisks .disks [0 ].dev_path == "/dev/sda"
89+ assert datadisks .disks [0 ].dev_path == PurePath ( "/dev/sda" )
8890
8991
9092async def test_os_wipe_data (
You can’t perform that action at this time.
0 commit comments