Skip to content

Commit

Permalink
tests: add test_partial_iteration_on_streams_using_concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
ebonnal committed Dec 30, 2023
1 parent dfc6f08 commit 03a00a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ def test_flatten(self, concurrency) -> None:
)
)

def test_partial_iteration_on_streams_using_concurrency(self) -> None:
next(iter(Stream(src).batch().flatten(concurrency=2)))
next(iter(Stream(src).map(identity, concurrency=2)))
next(iter(Stream(src).do(identity, concurrency=2)))


def test_flatten_typing(self) -> None:
flattened_iterator_stream: Stream[str] = (
Stream("abc".__iter__).map(iter).flatten()
Expand Down

0 comments on commit 03a00a7

Please sign in to comment.