summaryrefslogtreecommitdiff
path: root/test/t/test_flake8.py
blob: 9922fb8526b6e73380aea15cec478ec83a19b664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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