summaryrefslogtreecommitdiff
path: root/test/t/test_nproc.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_nproc.py')
-rw-r--r--test/t/test_nproc.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/t/test_nproc.py b/test/t/test_nproc.py
new file mode 100644
index 00000000..6ab8017c
--- /dev/null
+++ b/test/t/test_nproc.py
@@ -0,0 +1,11 @@
+import pytest
+
+
+class TestNproc:
+ @pytest.mark.complete("nproc ")
+ def test_1(self, completion):
+ assert not completion
+
+ @pytest.mark.complete("nproc -")
+ def test_2(self, completion):
+ assert completion