mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Sorted scandir results to have completions ordered
This commit is contained in:
@@ -314,8 +314,8 @@ def test_file_fuzzy_completion(Script, tmp_path):
|
|||||||
file0_path1 = folder0 / "syntax_tree.py"
|
file0_path1 = folder0 / "syntax_tree.py"
|
||||||
file0_path1.write_text('\n')
|
file0_path1.write_text('\n')
|
||||||
script = Script('"{}/yt'.format(folder0))
|
script = Script('"{}/yt'.format(folder0))
|
||||||
assert ['sys_path.py"',
|
assert ['syntax_tree.py"',
|
||||||
'syntax_tree.py"' ] == [comp.name for comp in script.completions(fuzzy=True)]
|
'sys_path.py"'] == [comp.name for comp in script.completions(fuzzy=True)]
|
||||||
|
|
||||||
|
|
||||||
def test_fuzzy_completion(Script):
|
def test_fuzzy_completion(Script):
|
||||||
|
|||||||
Reference in New Issue
Block a user