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

DavidCain / mitoc-member / 47 / 1
95%
master: 95%

Build:
DEFAULT BRANCH: master
Ran 14 Sep 2019 11:39PM UTC
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

14 Sep 2019 11:35PM UTC coverage: 95.029%. Remained the same
FLASK_APP=autoapp.py

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

Source Files on job 47.1 (FLASK_APP=autoapp.py)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 3
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 16
  • Travis Job 47.1
  • 95f87ee1 on github
  • Prev Job for FLASK_APP=autoapp.py on master (#46.1)
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