#NEWLINE# @ pytest . mark . parametrize ( 'sql' , [ 'select a.x, b.y from abc a join bcd b on a.id = ' , 'select a.x, b.y from abc a join bcd b on a.id = b.id AND a.id2 = ' ] ) #NEWLINE# def test_on_suggests_aliases_right_side( sql ) : #NEWLINE# #INDENT# suggestions = suggest_type ( sql , suggestions ) #NEWLINE# assert ( suggestions == ( Alias ( aliases = ( 'a' , 'b' ) ) , ) )