summaryrefslogtreecommitdiff
path: root/test/t/test_flake8.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_flake8.py')
-rw-r--r--test/t/test_flake8.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/t/test_flake8.py b/test/t/test_flake8.py
index 9922fb85..67649fa7 100644
--- a/test/t/test_flake8.py
+++ b/test/t/test_flake8.py
@@ -1,13 +1,14 @@
import pytest
-@pytest.mark.bashcomp(skipif="! flake8 --help &>/dev/null")
class TestFlake8:
@pytest.mark.complete("flake8 ")
def test_1(self, completion):
assert completion
- @pytest.mark.complete("flake8 -")
+ @pytest.mark.complete(
+ "flake8 -", require_cmd=True, xfail="! flake8 --help &>/dev/null"
+ )
def test_2(self, completion):
assert completion