def test_get_completions(vim_mod): vim_mod.var_map['a:'] = { 'ft': 'common', 'inputted': 'os.', 'msg': [] } api.get_completer() assert api.get_completions() == []
def test_on_data(vim_mod): vim_mod.var_map['a:'] = { 'ft': b'common', 'inputted': b'os.', 'msg': [], 'action': b'complete' } api.get_completer() assert api.on_data() == []
def test_get_completer(vim_mod): vim_mod.var_map['a:'] = {'ft': 'common', 'inputted': 'os.'} assert api.get_completer() == { 'is_sync': True, 'ftype': 'common', 'cmd': '', 'is_daemon': False }
def test_get_completer(vim_mod): vim_mod.var_map['a:'] = {'ft': 'common', 'inputted': 'os.'} assert api.get_completer() == ['', 'common', False, True]
def test_get_completer(vim_mod): vim_mod.var_map['a:'] = {'ft': 'common', 'inputted': 'os.'} assert api.get_completer() == ['', 'common', False, True]
def test_get_completions(vim_mod): vim_mod.var_map['a:'] = {'ft': 'common', 'inputted': 'os.', 'msg': []} api.get_completer() assert api.get_completions() == []