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

box / box-python-sdk / 1134
95%
main: 91%

Build:
Build:
LAST BUILD BRANCH: codegen-release-4153-41c28e1-1617aaf
DEFAULT BRANCH: main
Ran 16 Oct 2018 07:16AM UTC
Jobs 1
Files 78
Run time 998min
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

pending completion
1134

Pull #345

travis-ci

web-flow
Fix tests that were broken on Python 3.7

The test were broken, not the production code.

For test_jwt_auth and test_group, the tests were always subty
wrong, where we'd run out of test data to feed to our mocks
earlier than we were supposed to. But because the StopIteration
was masked, we never noticed. And somehow our assertions didn't
catch these problems.

Now because StopIteration turns into a RuntimeError inside a
generator (PEP 479), these pre-existing bugs were revealed.

For test_events, we were using StopIteration to break out of a
generator. Now we just have to change our test code to use a
different exception.

In test_group, a generator had an incorrect implementation of
Box's paging strategy, which would cause the SDK to try
requesting one extra page of data, which would try to get more
data out of the mock, which would trigger a StopIteration
exception.

In test_jwt_auth, we were only seeding a mock with enough data
for one authentication. But many of our tests do two
authentications. So on old versions of Python, when we'd do the
second authentication, the mock would run out of data, and we'd
seed an empty JTI string. This would silently work before.
Pull Request #345: Run CI tests on Python 3.7

2156 of 2278 relevant lines covered (94.64%)

0.95 hits per line

Jobs
ID Job ID Ran Files Coverage
9 1134.9 (TOX_ENV=coverage) 16 Oct 2018 07:16AM UTC 0
94.64
Travis Job 1134.9
Source Files on build 1134
  • Tree
  • List 0
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #1134
  • Pull Request #345
  • PR Base - master (#1076)
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

© 2025 Coveralls, Inc