MCPcopy Create free account
hub / github.com/celery/celery / test_chunks

Function test_chunks

t/unit/utils/test_utils.py:11–13  ·  view source on GitHub ↗
(items, n, expected)

Source from the content-addressed store, hash-verified

9 (range(10), 2, [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]]),
10])
11def test_chunks(items, n, expected):
12 x = chunks(iter(list(items)), n)
13 assert list(x) == expected
14
15
16def test_cached_property():

Callers

nothing calls this directly

Calls 1

chunksFunction · 0.90

Tested by

no test coverage detected