Skip to content

Commit cb55c94

Browse files
committed
add extras execute_batch
1 parent 17b5e4c commit cb55c94

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_extras.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ def test__paginate():
3535
assert data[index] == list(val)
3636

3737

38+
def test__paginate_even():
39+
data = [
40+
[1, 2, 3],
41+
[4, 5, 6],
42+
]
43+
for index, val in enumerate(_paginate((1, 2, 3, 4, 5, 6), page_size=3)):
44+
assert data[index] == list(val)
45+
46+
3847
async def test_execute_batch(cursor):
3948
args = [(1,), (2,), (3,), (4,)]
4049
sql = 'insert into tbl_extras values(%s)'

0 commit comments

Comments
 (0)