• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CenterForOpenScience / SHARE / 18378636854

09 Oct 2025 01:53PM UTC coverage: 84.286% (+2.6%) from 81.693%
18378636854

Pull #886

github

web-flow
Merge b8734c780 into 8f08e7f39
Pull Request #886: Feat/9046 shtrove rss

509 of 600 new or added lines in 38 files covered. (84.83%)

1 existing line in 1 file now uncovered.

6565 of 7789 relevant lines covered (84.29%)

0.84 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.86
/trove/render/rendering/streamable.py
1
from collections.abc import Iterator
1✔
2
import dataclasses
1✔
3

4
from trove import exceptions as trove_exceptions
1✔
5
from .proto import ProtoRendering
1✔
6

7

8
@dataclasses.dataclass
1✔
9
class StreamableRendering(ProtoRendering):
1✔
10
    mediatype: str
1✔
11
    content_stream: Iterator[str] | Iterator[bytes] = iter(())
1✔
12
    _started_already: bool = False
1✔
13

14
    def iter_content(self) -> Iterator[str] | Iterator[bytes]:
1✔
15
        if self._started_already:
1✔
NEW
16
            raise trove_exceptions.CannotRenderStreamTwice
×
17
        self._started_already = True
1✔
18
        yield from self.content_stream
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc