mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 23:04:48 +08:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user