summaryrefslogtreecommitdiff
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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/t/test_mock.py b/test/t/test_mock.py
index 7dc5de2a..5f9eb3e0 100644
--- a/test/t/test_mock.py
+++ b/test/t/test_mock.py
@@ -5,3 +5,9 @@ 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