Sorted scandir results to have completions ordered
This commit is contained in:
1 parent
f61d041830
commit
d48816603e
1 file changed
+2
-2
@@ -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