We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af0b853 commit 6598eabCopy full SHA for 6598eab
1 file changed
tests/unit/test_query.py
@@ -66,3 +66,10 @@ def test_add_all(self):
66
bound_statements = [t[1] for t in batch._statements_and_parameters]
67
str_parameters = [str(i) for i in range(10)]
68
self.assertEqual(bound_statements, str_parameters)
69
+
70
+ def test_len(self):
71
+ for n in 0, 10, 100:
72
+ batch = BatchStatement()
73
+ batch.add_all(statements=['%s'] * n,
74
+ parameters=[(i,) for i in range(n)])
75
+ self.assertEqual(len(batch), n)
0 commit comments