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

cloudmarker / cloudmarker / 254
84%

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

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

2.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 254.1 13 Feb 2019 03:55AM UTC 0
84.5
Travis Job 254.1
2 254.2 13 Feb 2019 03:55AM UTC 0
84.5
Travis Job 254.2
3 254.3 13 Feb 2019 03:55AM UTC 0
84.5
Travis Job 254.3
Source Files on build 254
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #254
  • a1060589 on github
  • Prev Build on master (#243)
  • Next Build on master (#263)
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