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

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

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

11 Jun 2020 04:06AM UTC coverage: 92.5% (+2.3%) from 90.179%
29.1

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%)

0.93 hits per line

Source Files on job 29.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21
  • Travis Job 29.1
  • 8393f667 on github
  • Prev Job for on requests_mock (#28.2)
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