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

DavidCain / mitoc-member / 47
95%

Build:
DEFAULT BRANCH: master
Ran 14 Sep 2019 11:39PM UTC
Jobs 1
Files 24
Run time 1s
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
47

push

travis-ci

DavidCain
Correct use of `mock.patch.dict`

Previously, I had falsely assumed that `mock.patch.dict` would overwrite
the dict that it is mocking. This is not actually the case! Rather, the
keys that are specified are *additive*. In order to achieve a complete
replacement of the dictionary, we must pass `clear` first.

The tests were passing previously because our testing instance does not
have any environment variables that conflict with what's expected in the
tests. However, a developer should be able to have as many env vars set
as they like for local development, and run the tests without worrying
that those env vars will change behavior.

76 of 81 branches covered (93.83%)

Branch coverage included in aggregate %.

746 of 784 relevant lines covered (95.15%)

0.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 47.1 (FLASK_APP=autoapp.py) 14 Sep 2019 11:39PM UTC 0
95.03
Travis Job 47.1
Source Files on build 47
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #47
  • 95f87ee1 on github
  • Prev Build on master (#46)
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