Skip to content

Commit

Permalink
Fix argcomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Dec 5, 2019
1 parent 97017d9 commit 4398d58
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/pytest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# PYTHON_ARGCOMPLETE_OK
"""
pytest: unit and functional testing with Python.
"""
Expand Down
1 change: 1 addition & 0 deletions src/pytest/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
pytest entry point
"""
# PYTHON_ARGCOMPLETE_OK
import pytest

if __name__ == "__main__":
Expand Down
9 changes: 9 additions & 0 deletions testing/test_argcomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,12 @@ def test_remove_dir_prefix(self):
fc = FilesCompleter()
for x in "/usr/".split():
assert not equal_with_bash(x, ffc, fc, out=sys.stdout)


@pytest.mark.integration
def test_integration(testdir):
child = testdir.spawn("bash", "--norc")
child.sendline('eval "$(register-python-argcomplete pytest)"')
child.send("pytest --qu\t")
child.expect_exact("iet")
child.sendeof()

0 comments on commit 4398d58

Please sign in to comment.