passerelle/tests/test_utils_batch.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
149 B
Python
Raw Normal View History

from passerelle.utils import batch
def test_batch():
data = range(10)
for i, d in enumerate(batch(data, 1)):
assert list(d) == [i]