mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-08 18:39:33 +00:00
Return list of possible data disk targets (#3133)
* Return list of possible data disk targets * fix path * fix tests * Add test * Fix tests * Add tests * Add more tests * Remove debug * Address comments * more clear
This commit is contained in:
@@ -13,10 +13,12 @@ def test_device_property(coresys):
|
||||
Path("/dev/ttyACM0"),
|
||||
Path("/sys/bus/usb/001"),
|
||||
"tty",
|
||||
None,
|
||||
[Path("/dev/serial/by-id/fixed-device")],
|
||||
{"MAJOR": "5", "MINOR": "10"},
|
||||
[],
|
||||
)
|
||||
|
||||
assert device.by_id == device.links[0]
|
||||
assert device.cgroups_major == 5
|
||||
assert device.cgroups_minor == 10
|
||||
assert device.major == 5
|
||||
assert device.minor == 10
|
||||
|
||||
Reference in New Issue
Block a user