#NEWLINE# def test_suggested_aliases_after_on( completer , complete_event ) : #NEWLINE# #INDENT# text = 'SELECT u.name, o.id FROM users u JOIN orders o ON ' #NEWLINE# position = len ( 'SELECT u.name, o.id FROM users u JOIN orders o ON ' ) #NEWLINE# result = set ( completer . get_completions ( Document ( text = text , cursor_position = position ) , complete_event ) ) #NEWLINE# assert ( set ( text ) == set ( [ Completion ( text = 'u' , start_position = 0 , display_meta = 'table alias' ) , Completion ( text = 'o' , start_position = 0 , display_meta = 'table alias' ) ] ) )