Add many test cases

While these definitely _ought_ to work on Python 2.7, the annotation
support there is very limited and as Python 2 is deprecated it
doesn't seem worth it.
This commit is contained in:
Peter Law
2020-02-16 23:09:28 +00:00
parent 6efafb348e
commit 0a7820f6de
3 changed files with 242 additions and 2 deletions

View File

@@ -340,8 +340,13 @@ def test_math_fuzzy_completion(Script, environment):
def test_file_fuzzy_completion(Script):
path = os.path.join(test_dir, 'completion')
script = Script('"{}/ep08_i'.format(path))
assert ['pep0484_basic.py"', 'pep0484_typing.py"'] \
== [comp.name for comp in script.complete(fuzzy=True)]
expected = [
'pep0484_basic.py"',
'pep0484_generic_parameters.py"',
'pep0484_generic_passthroughs.py"',
'pep0484_typing.py"',
]
assert expected == [comp.name for comp in script.complete(fuzzy=True)]
@pytest.mark.parametrize(