1
0
forked from VimPlug/jedi

Fix string additions when used in certain ways

This commit is contained in:
Dave Halter
2019-08-05 10:11:36 +02:00
parent 8108122347
commit b7c2bacbd2
2 changed files with 16 additions and 7 deletions

View File

@@ -190,6 +190,12 @@ def test_keyword_completion(Script, code, has_keywords):
('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]),
('example.py', 'x = f("te" + "st)', 16, [s]),
('example.py', 'x = f("te" + "st', 16, [s]),
('example.py', 'x = f("te" + "st"', 16, [s]),
('example.py', 'x = f("te" + "st")', 16, [s]),
('example.py', 'x = f("t" + "est")', 16, [s]),
('example.py', '"test" + "', None, [s]),
]
)
def test_file_path_completions(Script, file, code, column, expected):