Skip to content

Commit

Permalink
test/python: add testcase for submodule completion
Browse files Browse the repository at this point in the history
  • Loading branch information
jakseb authored and scop committed Mar 17, 2020
1 parent 71b465a commit 900824d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/t/test_python.py
Expand Up @@ -33,3 +33,7 @@ def test_7(self, completion):
@pytest.mark.complete("python -m sy", require_cmd=True)
def test_8(self, completion):
assert completion

@pytest.mark.complete("python -m json.", require_cmd=True)
def test_9(self, completion):
assert "json.tool" in completion
4 changes: 4 additions & 0 deletions test/t/test_python3.py
Expand Up @@ -33,3 +33,7 @@ def test_7(self, completion):
@pytest.mark.complete("python3 -m sy", require_cmd=True)
def test_8(self, completion):
assert completion

@pytest.mark.complete("python3 -m json.", require_cmd=True)
def test_9(self, completion):
assert "json.tool" in completion

0 comments on commit 900824d

Please sign in to comment.