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