Skip to content

Commit

Permalink
simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias committed Nov 8, 2024
1 parent f989795 commit 8e9896e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fixlib/test/asynchronous/stream_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ def with_int(foo: int) -> int:
async def test_chunks() -> None:
assert len([chunk async for chunk in example_stream().chunks(2)]) == 3
assert [chunk async for chunk in example_stream().chunks(2)] == await example_stream().chunks(2).collect()
assert await example_stream().chunks(2).map(Stream.as_list).collect() == [[5, 4], [3, 2], [1]]
assert await example_stream().chunks(2).collect() == [[5, 4], [3, 2], [1]]

0 comments on commit 8e9896e

Please sign in to comment.