forked from VimPlug/jedi
Adopted results for different python versions
This commit is contained in:
@@ -307,10 +307,23 @@ def test_goto_follow_builtin_imports(Script):
|
|||||||
assert d.in_builtin_module() is True
|
assert d.in_builtin_module() is True
|
||||||
|
|
||||||
|
|
||||||
def test_fuzzy_completion(Script):
|
def test_str_fuzzy_completion(Script):
|
||||||
script = Script('string = "hello"\nstring.upper')
|
script = Script('string = "hello"\nstring.upper')
|
||||||
assert ['isupper',
|
assert ['isupper',
|
||||||
'upper'] == [comp.name for comp in script.completions(fuzzy=True)]
|
'upper'] == [comp.name for comp in script.completions(fuzzy=True)]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif(sys.version_info < (3, 3),
|
||||||
|
reason="requires python3.3 or higher")
|
||||||
|
def test_math_fuzzy_completion(Script):
|
||||||
|
script = Script('import math\nmath.og')
|
||||||
|
assert ['copysign', 'log', 'log10',
|
||||||
|
'log1p'] == [comp.name for comp in script.completions(fuzzy=True)]
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif(sys.version_info >= (3, 3),
|
||||||
|
reason="requires python3.3 or higher")
|
||||||
|
def test_math_fuzzy_completion(Script):
|
||||||
script = Script('import math\nmath.og')
|
script = Script('import math\nmath.og')
|
||||||
assert ['copysign', 'log', 'log10', 'log1p',
|
assert ['copysign', 'log', 'log10', 'log1p',
|
||||||
'log2'] == [comp.name for comp in script.completions(fuzzy=True)]
|
'log2'] == [comp.name for comp in script.completions(fuzzy=True)]
|
||||||
|
|||||||
Reference in New Issue
Block a user