def test_suggested_column_names_in_function(completer, complete_event):
 text = u'SELECT MAX( from custom.products'
 position = len(u'SELECT MAX(')
 result = completer.get_completions(Document(text=text, cursor_position=position), complete_event)
 assert (set(result) == set(testdata.columns(u'products', u'custom')))

def test_suggested_column_names_in_function ( completer , complete_event ) : text = u'SELECT MAX( from custom.products' position = len ( u'SELECT MAX(' ) result = completer . get_completions ( Document ( text = text , cursor_position = position ) , complete_event ) assert ( set ( result ) == set ( testdata . columns ( u'products' , u'custom' ) ) )
suggest column and function names when selecting multiple columns from table .