From 80b046d1e52fed51eba42437fcccf3ea5393b816 Mon Sep 17 00:00:00 2001 From: Xyphuz Date: Thu, 9 Jun 2022 13:56:12 +0800 Subject: [PATCH] chore: apply missing pre-commit hooks --- tests/test_devices.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_devices.py b/tests/test_devices.py index 7eaae26..cbf0042 100644 --- a/tests/test_devices.py +++ b/tests/test_devices.py @@ -1,5 +1,6 @@ from compose_viz.models.device import Device + def test_device_init_normal() -> None: try: d = Device(host_path="/dev/ttyUSB0", container_path="/dev/ttyUSB1") @@ -9,6 +10,7 @@ def test_device_init_normal() -> None: except Exception as e: assert False, e + def test_device_with_cgroup_permissions() -> None: try: 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.cgroup_permissions == "rwm" except Exception as e: - assert False, e \ No newline at end of file + assert False, e