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