summaryrefslogtreecommitdiffstats
path: root/test/t/test_lspci.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_lspci.py')
-rw-r--r--test/t/test_lspci.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/t/test_lspci.py b/test/t/test_lspci.py
new file mode 100644
index 0000000..aba7b5a
--- /dev/null
+++ b/test/t/test_lspci.py
@@ -0,0 +1,13 @@
+import pytest
+
+
+class TestLspci:
+ @pytest.mark.complete("lspci -", require_cmd=True)
+ def test_1(self, completion):
+ assert completion
+
+ @pytest.mark.complete(
+ "lspci -A ", require_cmd=True, skipif="! lspci -A help &>/dev/null"
+ )
+ def test_2(self, completion):
+ assert completion