Make join detection much easier

This commit is contained in:
Dave Halter
2019-08-08 01:03:31 +02:00
parent 52517f78b1
commit 822394663c
3 changed files with 34 additions and 40 deletions

View File

@@ -242,6 +242,11 @@ os_path = 'from os.path import *\n'
(f2, 'import os.path as p as p\np.join(p.dirname(__file__), "completi', None, ['on"']),
(f2, 'from os.path import dirname, join as j\nj(dirname(__file__), "completi',
None, ['on"']),
# Trying to break it
(f2, os_path + 'join(["tes', 10, ['t' + s]),
(f2, os_path + 'join(["tes"]', 10, ['t' + s]),
(f2, os_path + 'join(["tes"])', 10, ['t' + s]),
]
)
def test_file_path_completions(Script, file, code, column, expected):