@@ -421,8 +421,7 @@ def test_full_query(self):
421421 " WHERE (start_time <= INTEGER('1371566954')) AND "
422422 "(start_time >= INTEGER('1371556954')) GROUP BY "
423423 "timestamp, status HAVING (status == INTEGER('1')) "
424- "ORDER BY timestamp desc "
425- "LIMIT 10" )
424+ "ORDER BY timestamp desc LIMIT 10" )
426425 expected_select = (expected_query [len ('SELECT ' ):]
427426 .split ('FROM' )[0 ].strip ().split (', ' ))
428427 expected_from = expected_query [len ('SELECT ' ):].split ('FROM' )[1 ]
@@ -755,7 +754,7 @@ def test_no_alias(self):
755754 expected_query = ("SELECT status , start_time , resource FROM "
756755 "[dataset.2013_06_appspot_1] WHERE (start_time "
757756 "<= INTEGER('1371566954')) AND (start_time >= "
758- "INTEGER('1371556954')) ORDER BY start_time desc" )
757+ "INTEGER('1371556954')) ORDER BY start_time desc " )
759758 expected_select = (field .strip () for field in
760759 expected_query [len ('SELECT ' ):]
761760 .split ('FROM' )[0 ].strip ().split (', ' ))
@@ -931,7 +930,8 @@ def test_no_table_or_dataset(self):
931930 'negate' : False }],
932931 'type' : 'INTEGER' },
933932 ],
934- order_by = {'fields' : ['timestamp' ], 'direction' : 'desc' })
933+ order_by = {'fields' : ['timestamp' ], 'direction' : 'desc' },
934+ limit = 10 )
935935
936936 self .assertIsNone (result )
937937
0 commit comments