Test behaviour of _step, assert it still retrieves all data
This commit is contained in:
parent
f6e52db698
commit
a92a315b60
@ -288,6 +288,8 @@ class TableTestCase(unittest.TestCase):
|
|||||||
assert len(ds) == 2, ds
|
assert len(ds) == 2, ds
|
||||||
ds = list(self.tbl.find(place=TEST_CITY_1, _limit=1, _step=2))
|
ds = list(self.tbl.find(place=TEST_CITY_1, _limit=1, _step=2))
|
||||||
assert len(ds) == 1, ds
|
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']))
|
ds = list(self.tbl.find(order_by=['temperature']))
|
||||||
assert ds[0]['temperature'] == -1, ds
|
assert ds[0]['temperature'] == -1, ds
|
||||||
ds = list(self.tbl.find(order_by=['-temperature']))
|
ds = list(self.tbl.find(order_by=['-temperature']))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user