From 963247fa9d26721b6b88fc8b5aeba3571e716def Mon Sep 17 00:00:00 2001 From: Martin Kepplinger <martin.kepplinger@puri.sm> Date: Mon, 2 Nov 2020 13:28:41 +0100 Subject: [PATCH] pytests: add basic test for the torch --- pytests/test_torch.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pytests/test_torch.py diff --git a/pytests/test_torch.py b/pytests/test_torch.py new file mode 100644 index 0000000..8f012eb --- /dev/null +++ b/pytests/test_torch.py @@ -0,0 +1,9 @@ +from . import boardtype + +import os +import pytest + + +@pytest.mark.skipif(not boardtype.is_librem5(), reason="Not a phone") +def test_torch_exists(): + assert(os.path.exists('/sys/class/leds/white:torch/brightness')) -- GitLab