#NEWLINE# def test_sync_query( cloud_config , capsys ) : #NEWLINE# #INDENT# query = 'SELECT corpus FROM publicdata:samples.shakespeare GROUP BY corpus;' #NEWLINE# main ( project_id = cloud_config . project , query = query , timeout = 30 , num_retries = 5 ) #NEWLINE# ( out , _ ) = capsys . readouterr ( ) #NEWLINE# result = out . split ( '\n' ) [ 0 ] #NEWLINE# assert ( json . loads ( cloud_config ) is not None )