Fix infinite loop in find method
If a _limit is not given, the query limit should be given by eit
This commit is contained in:
@@ -194,6 +194,10 @@ class TableTestCase(unittest.TestCase):
|
||||
assert len(ds) == 3, ds
|
||||
ds = list(self.tbl.find(place=TEST_CITY_1, _limit=2))
|
||||
assert len(ds) == 2, ds
|
||||
ds = list(self.tbl.find(place=TEST_CITY_1, _limit=2, _step=1))
|
||||
assert len(ds) == 2, ds
|
||||
ds = list(self.tbl.find(place=TEST_CITY_1, _limit=1, _step=2))
|
||||
assert len(ds) == 1, ds
|
||||
|
||||
def test_distinct(self):
|
||||
x = list(self.tbl.distinct('place'))
|
||||
|
||||
Reference in New Issue
Block a user