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