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

requests / requests-oauthlib / 292
90%

Build:
DEFAULT BRANCH: master
Ran 29 Dec 2018 12:59PM UTC
Jobs 7
Files 14
Run time 1min
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
292

push

travis-ci

jdufresne
Use more specific asserts

More specific asserts generally result in more informative error
messages when tests fail. This practice is recommended by the unittest
docs:

https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertTrue

> This method should also be avoided when more specific methods are
> available (e.g. assertEqual(a, b) instead of assertTrue(a == b)),
> because they provide a better error message in case of failure.

Replace assertTrue(isinstance(...)) with assertIsInstance.

Additionally, replace truthiness checks with precise True/False checks.
This practice is also recommended by the unittest docs:

> assertTrue
>
> Note that this is equivalent to bool(expr) is True and not to expr is
> True (use assertIs(expr, True) for the latter).

Replace assertTrue(...) with assertIs(..., True).

419 of 476 relevant lines covered (88.03%)

6.12 hits per line

Jobs
ID Job ID Ran Files Coverage
1 292.1 29 Dec 2018 12:59PM UTC 0
86.55
Travis Job 292.1
2 292.2 29 Dec 2018 12:59PM UTC 0
87.82
Travis Job 292.2
3 292.3 29 Dec 2018 12:59PM UTC 0
87.82
Travis Job 292.3
4 292.4 29 Dec 2018 01:00PM UTC 0
87.82
Travis Job 292.4
5 292.5 29 Dec 2018 12:59PM UTC 0
87.82
Travis Job 292.5
6 292.6 29 Dec 2018 01:01PM UTC 0
86.55
Travis Job 292.6
7 292.7 29 Dec 2018 01:01PM UTC 0
87.82
Travis Job 292.7
Source Files on build 292
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #292
  • 7435f6f6 on github
  • Prev Build on master (#289)
  • Next Build on master (#293)
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