chore: apply missing pre-commit hooks
This commit is contained in:
parent
80c62ac94d
commit
80b046d1e5
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
from compose_viz.models.device import Device
|
from compose_viz.models.device import Device
|
||||||
|
|
||||||
|
|
||||||
def test_device_init_normal() -> None:
|
def test_device_init_normal() -> None:
|
||||||
try:
|
try:
|
||||||
d = Device(host_path="/dev/ttyUSB0", container_path="/dev/ttyUSB1")
|
d = Device(host_path="/dev/ttyUSB0", container_path="/dev/ttyUSB1")
|
||||||
|
@ -9,6 +10,7 @@ def test_device_init_normal() -> None:
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
assert False, e
|
assert False, e
|
||||||
|
|
||||||
|
|
||||||
def test_device_with_cgroup_permissions() -> None:
|
def test_device_with_cgroup_permissions() -> None:
|
||||||
try:
|
try:
|
||||||
d = Device(host_path="/dev/sda1", container_path="/dev/xvda", cgroup_permissions="rwm")
|
d = Device(host_path="/dev/sda1", container_path="/dev/xvda", cgroup_permissions="rwm")
|
||||||
|
@ -17,4 +19,4 @@ def test_device_with_cgroup_permissions() -> None:
|
||||||
assert d.container_path == "/dev/xvda"
|
assert d.container_path == "/dev/xvda"
|
||||||
assert d.cgroup_permissions == "rwm"
|
assert d.cgroup_permissions == "rwm"
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
assert False, e
|
assert False, e
|
||||||
|
|
Loading…
Reference in a new issue