Skip to content

Commit 2fff214

Browse files
author
rodrigo.nogueira
committed
Add pragma no cover to mock stream iterators for 100% coverage
1 parent 6eb7ac2 commit 2fff214

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_bound_stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class MockSyncStream(SyncByteStream):
1919
def __init__(self) -> None:
2020
self.closed = False
2121

22-
def __iter__(self) -> typing.Iterator[bytes]:
22+
def __iter__(self) -> typing.Iterator[bytes]: # pragma: no cover
2323
yield b"test"
2424

2525
def close(self) -> None:
@@ -30,7 +30,7 @@ class MockAsyncStream(AsyncByteStream):
3030
def __init__(self) -> None:
3131
self.closed = False
3232

33-
async def __aiter__(self) -> typing.AsyncIterator[bytes]:
33+
async def __aiter__(self) -> typing.AsyncIterator[bytes]: # pragma: no cover
3434
yield b"test"
3535

3636
async def aclose(self) -> None:

0 commit comments

Comments
 (0)