#NEWLINE# @ pytest . mark . parametrize ( 'text' , [ 'SELECT foo ' , 'SELECT foo FROM bar ' , 'SELECT foo AS bar ' , 'SELECT foo bar ' , 'SELECT * FROM foo AS bar ' , 'SELECT * FROM foo bar ' , 'SELECT foo FROM (SELECT bar ' ] ) #NEWLINE# def test_alias_suggests_keywords( text ) : #NEWLINE# #INDENT# suggestions = suggest_type ( text , text ) #NEWLINE# assert ( suggestions == ( Keyword ( ) , ) )