Skip to content

Commit

Permalink
Test behaviour of _step, assert it still retrieves all data
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanw committed Oct 15, 2016
1 parent f6e52db commit a92a315
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ def test_find(self):
assert len(ds) == 2, ds
ds = list(self.tbl.find(place=TEST_CITY_1, _limit=1, _step=2))
assert len(ds) == 1, ds
ds = list(self.tbl.find(_step=2))
assert len(ds) == len(TEST_DATA), ds
ds = list(self.tbl.find(order_by=['temperature']))
assert ds[0]['temperature'] == -1, ds
ds = list(self.tbl.find(order_by=['-temperature']))
Expand Down

0 comments on commit a92a315

Please sign in to comment.