mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-04 16:30:06 +08:00
13 lines
310 B
Python
13 lines
310 B
Python
|
from jedi import api
|
||
|
|
||
|
|
||
|
def test_add_bracket_after_function(monkeypatch, Script):
|
||
|
settings = api.settings
|
||
|
monkeypatch.setattr(settings, 'add_bracket_after_function', True)
|
||
|
script = Script('''\
|
||
|
def foo():
|
||
|
pass
|
||
|
foo''')
|
||
|
completions = script.complete()
|
||
|
assert completions[0].complete == '('
|