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

cloudmarker / cloudmarker / 254 / 2
84%
master: 84%

Build:
DEFAULT BRANCH: master
Ran 13 Feb 2019 03:55AM UTC
Files 22
Run time 2s
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

08 Feb 2019 03:55PM UTC coverage: 84.496% (+8.7%) from 75.768%
254.2

push

travis-ci-com

susam
Add unit tests for MongoDBStore

The unit tests use `mock.patch` to patch `MongoClient` with `MagicMock`
objects in order to avoid dependency on an actual MongoDB server to run
the tests.

Note that in the tests we do not call a `Mock` object's `assert_called`
method although this method would have sufficed. That's because
`assert_called` method was introduced in Python 3.6. We support Python
versions 3.4 and 3.5 also at this time and therefore run Travis CI
builds with these versions. Calling `assert_called()` leads to test error
with Python 3.5 due to `AttributeError` and does not do what we want on
Python 3.4 (returns a `MagicMock` object that does nothing).

In order to support Python versions 3.4 and 3.5, we use
`assert_called_with` and `assert_called_once_with` methods because these
methods are available prior to Python 3.6.

78 of 103 branches covered (75.73%)

Branch coverage included in aggregate %.

467 of 542 relevant lines covered (86.16%)

0.86 hits per line

Source Files on job 254.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 191
  • Travis Job 254.2
  • a1060589 on github
  • Prev Job for on master (#243.2)
  • Next Job for on master (#263.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