Skip to content

Commit

Permalink
test/aptitude: add some test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Mar 22, 2020
1 parent ec6995c commit 762ee12
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/t/test_aptitude.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,19 @@ class TestAptitude:
@pytest.mark.complete("aptitude ")
def test_1(self, completion):
assert completion

@pytest.mark.complete("aptitude -")
def test_options(self, completion):
assert completion

@pytest.mark.complete("aptitude --")
def test_long_options(self, completion):
assert completion

@pytest.mark.complete("aptitude -u -")
def test_no_i_with_u(self, completion):
assert "-i" not in completion

@pytest.mark.complete("aptitude -i -")
def test_no_u_with_i(self, completion):
assert "-u" not in completion

0 comments on commit 762ee12

Please sign in to comment.