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.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/t/test_flake8.py b/test/t/test_flake8.py
new file mode 100644
index 00000000..9922fb85
--- /dev/null
+++ b/test/t/test_flake8.py
@@ -0,0 +1,16 @@
+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 -")
+ def test_2(self, completion):
+ assert completion
+
+ @pytest.mark.complete("flake8 --doesnt-exist=")
+ def test_3(self, completion):
+ assert not completion