def test_suggested_multiple_column_names(completer, complete_event):
 text = u'SELECT id,  from custom.products'
 position = len(u'SELECT id, ')
 result = set(completer.get_completions(Document(text=text, cursor_position=position), complete_event))
 assert (set(result) == set(((testdata.columns(u'products', u'custom') + testdata.functions()) + list((testdata.builtin_functions() + testdata.keywords())))))

def test_suggested_multiple_column_names ( completer , complete_event ) : text = u'SELECT id,  from custom.products' position = len ( u'SELECT id, ' ) result = set ( completer . get_completions ( Document ( text = text , cursor_position = position ) , complete_event ) ) assert ( set ( result ) == set ( ( ( testdata . columns ( u'products' , u'custom' ) + testdata . functions ( ) ) + list ( ( testdata . builtin_functions ( ) + testdata . keywords ( ) ) ) ) ) )
suggest column and function names when selecting multiple columns from table .