Skip to content

Commit

Permalink
test: make the pytest option testcase require cmd
Browse files Browse the repository at this point in the history
It fails if the command doesn't exist, since the options are parsed from
the command invocation.
  • Loading branch information
yedayak authored and scop committed Feb 8, 2024
1 parent b631277 commit bdb59e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/t/test_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class TestPytest:
def test_1(self, completion):
assert completion

@pytest.mark.complete("pytest -")
@pytest.mark.complete("pytest -", require_cmd=True)
def test_2(self, completion):
assert completion

Expand Down
1 change: 1 addition & 0 deletions test/test-cmd-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ pyflakes
pylint
pylint-3
pyston
pytest
python
python3
qemu
Expand Down

0 comments on commit bdb59e1

Please sign in to comment.