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

release-engineering / pubtools-pulplib / 178 / 4
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 09 Sep 2019 01:03AM UTC
Files 36
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Sep 2019 01:02AM UTC coverage: 100.0%. Remained the same
TOX_ENV=cov-travis DEPLOY=1

push

travis-ci

web-flow
Deprecate Page.as_iter in preference of __iter__ (#48)

Implementing __iter__ allows to directly iterate over Page objects
rather than having to call as_iter.

The original idea with adding Page.as_iter rather than __iter__ was
that using as_iter is blocking, and it would be better to be
explicit rather than implicit whenever operations might block, so
as to help keep a workflow entirely non-blocking.

However, now we have several pieces of code using this library and
the following pattern is seen commonly:

  repos = client.search_repository(...).result().as_iter()
  for repo in repos:
    ...

That's a bit too noisy, and this usage seems to be more common than
using search results in a non-blocking manner anyway (e.g. we usually
want to find & validate *all* repos before moving to the next step).

So, it seems like the idea of "explicit over implicit" here isn't
helping. Let's allow using the result as an iterable directly, so
above code can be written as slightly cleaner:

  repos = client.search_repository(...).result()
  for repo in repos:
    ...

1282 of 1282 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 178.4 (TOX_ENV=cov-travis DEPLOY=1)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 168
  • Travis Job 178.4
  • 15eae369 on github
  • Prev Job for TOX_ENV=cov-travis DEPLOY=1 on master (#172.4)
  • Next Job for TOX_ENV=cov-travis DEPLOY=1 on master (#180.4)
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