Respect _limit and _offset kwargs for select distinct

This commit is contained in:
Simon Wörpel
2023-08-08 15:42:38 +02:00
parent 5c2dc8d3af
commit d61d309637
2 changed files with 10 additions and 2 deletions
+4
View File
@@ -384,6 +384,10 @@ class TableTestCase(unittest.TestCase):
assert len(x) == 3, x
x = list(self.tbl.distinct("temperature", place=["B€rkeley", "G€lway"]))
assert len(x) == 6, x
x = list(self.tbl.distinct("temperature", _limit=3, place=["B€rkeley", "G€lway"]))
assert len(x) == 3, x
x = list(self.tbl.distinct("temperature", _limit=6, _offset=1, place=["B€rkeley", "G€lway"]))
assert len(x) == 5, x
def test_insert_many(self):
data = TEST_DATA * 100