Make string additions work for file path completion

With this most simple cases of file path completions should be working now, fixes #493
This commit is contained in:
Dave Halter
2019-08-05 01:42:58 +02:00
parent 45dada9552
commit 8108122347
3 changed files with 46 additions and 8 deletions

View File

@@ -185,6 +185,11 @@ def test_keyword_completion(Script, code, has_keywords):
('example.py', 'r"""\ntest', None, []),
('example.py', 'u"""tes\n', (1, 7), ['t' + s]),
('example.py', '"""test%stest_cache.p"""' % s, 20, ['y']),
# Adding
('example.py', '"test" + "%stest_cac' % s, None, ['he.py']),
('example.py', '"test" + "%s" + "test_cac' % s, None, ['he.py']),
('example.py', 'x = 1 + "test', None, [s]),
]
)
def test_file_path_completions(Script, file, code, column, expected):