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

jamesbrunet / callhub-python-wrapper / 29
93%
master: 95%

Build:
Build:
LAST BUILD BRANCH: v1.2.0
DEFAULT BRANCH: master
Ran 11 Jun 2020 04:12AM UTC
Jobs 4
Files 5
Run time 25s
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
29

push

travis-ci

jamesbrunet
Modify unit test requests to use requests_mock, add __repr__ for objects

In order to add __repr__ to objects, we need to get the admin username
in the __init__ method, which we can do by a call to /agents/ and then
looking for the "owner" of the first agent. However, this seemingly minor
change breaks the entire test infrastructure, because MagicMock can
only be applied to a session AFTER it has been created, and if a web
request is made in __init__ it cannot be mocked.

We can solve this by using requests_mock to mock web requests!

111 of 120 relevant lines covered (92.5%)

3.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29.1 11 Jun 2020 04:12AM UTC 0
92.5
Travis Job 29.1
2 29.2 11 Jun 2020 04:12AM UTC 0
92.5
Travis Job 29.2
3 29.3 11 Jun 2020 04:12AM UTC 0
92.5
Travis Job 29.3
4 29.4 11 Jun 2020 04:12AM UTC 0
92.5
Travis Job 29.4
Source Files on build 29
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #29
  • 8393f667 on github
  • Prev Build on requests_mock (#28)
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