Skip to content

Commit 90315bc

Browse files
committed
fix tests
1 parent 15d647d commit 90315bc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/client/test_items.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,17 @@ def test_items_list(spider, json_and_msgpack):
3838
assert o[2] == {'id': 2, 'data': 'data2'}
3939

4040

41-
def test_items_iter_by_chunks(spider, json_and_msgpack):
41+
def test_items_list_iter(spider, json_and_msgpack):
4242
job = spider.jobs.run(meta={'state': 'running'})
4343
_add_test_items(job)
4444

45-
o = job.items.iter_by_chunks(2)
45+
o = job.items.list_iter(2)
4646
assert next(o) == [
4747
{'id': 0, 'data': 'data0'},
4848
{'id': 1, 'data': 'data1'},
4949
]
5050
assert next(o) == [
5151
{'id': 2, 'data': 'data2'},
5252
]
53-
next(o)
5453
with pytest.raises(StopIteration):
5554
next(o)

0 commit comments

Comments
 (0)