We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15d647d commit 90315bcCopy full SHA for 90315bc
tests/client/test_items.py
@@ -38,18 +38,17 @@ def test_items_list(spider, json_and_msgpack):
38
assert o[2] == {'id': 2, 'data': 'data2'}
39
40
41
-def test_items_iter_by_chunks(spider, json_and_msgpack):
+def test_items_list_iter(spider, json_and_msgpack):
42
job = spider.jobs.run(meta={'state': 'running'})
43
_add_test_items(job)
44
45
- o = job.items.iter_by_chunks(2)
+ o = job.items.list_iter(2)
46
assert next(o) == [
47
{'id': 0, 'data': 'data0'},
48
{'id': 1, 'data': 'data1'},
49
]
50
51
{'id': 2, 'data': 'data2'},
52
53
- next(o)
54
with pytest.raises(StopIteration):
55
next(o)
0 commit comments