Skip to content

Commit

Permalink
test: add invoke-rc.d test case for not repeating already given options
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Apr 23, 2019
1 parent 996a203 commit e0bb03a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/t/test_invoke_rc_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ class TestInvokeRcD:
@pytest.mark.complete("invoke-rc.d ")
def test_1(self, completion):
assert completion

@pytest.mark.complete("invoke-rc.d --no-fallback --")
def test_2(self, completion):
"""Test already specified option is not offered."""
assert completion
assert "--no-fallback" not in completion

0 comments on commit e0bb03a

Please sign in to comment.