Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
PicardParis authored and Jon Wayne Parrott committed Aug 1, 2017
1 parent a6e89e1 commit 944a6dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions samples/snippets/sync_query_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@


def test_sync_query(capsys):
# Query only outputs the first 10 rows, sort results to avoid randomness
query = (
'SELECT corpus FROM `publicdata.samples.shakespeare` '
'GROUP BY corpus;')
'GROUP BY corpus ORDER BY corpus')

sync_query(query)

out, _ = capsys.readouterr()

assert 'romeoandjuliet' in out
assert 'antonyandcleopatra' in out

0 comments on commit 944a6dc

Please sign in to comment.