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

cloudmarker / cloudmarker
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/urllib3-1.26.5
DEFAULT BRANCH: master
Repo Added 17 Dec 2018 06:07PM UTC
Files 92
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

LAST BUILD ON BRANCH mongodbtests
branch: mongodbtests
CHANGE BRANCH
x
Reset
  • mongodbtests
  • 0.1.0
  • alertdocs
  • apidocindent
  • audit-version
  • auditemails
  • azcloud
  • azstorage
  • azurecloud
  • azurecloud-exception
  • azvm_record_type
  • azwebapp
  • badges
  • baseconfig
  • bracket
  • buckets
  • build-matrix
  • changelog
  • clioptions
  • clouderror
  • common-plugins-config
  • consistency
  • copy-ext
  • copyext
  • cov_clean
  • dependabot/pip/cryptography-3.3.2
  • dependabot/pip/httplib2-0.18.0
  • dependabot/pip/httplib2-0.19.0
  • dependabot/pip/pyyaml-5.4
  • dependabot/pip/rsa-4.7
  • dependabot/pip/urllib3-1.26.5
  • dist
  • docfixes
  • doctest-fix
  • email_debug_param_from_config
  • emailbody
  • emaildocs
  • empty-port
  • esstore
  • firewalleventtest
  • firewallnorm
  • firewallruleevent
  • fix-esstore-done
  • fix-unused-input-queue
  • fix_cloud_worker
  • fixbuild
  • fixcoverage
  • fixindent
  • freeze
  • gcpcloudlogs
  • gcpcloudtest
  • iam_policy
  • ignore-virtual-machines
  • ioworkers
  • key_file_name_fix
  • lint
  • load_yaml_safely
  • log
  • logfixes
  • logger-defaults
  • logging-levels
  • master
  • maxrecs
  • mock-records
  • mockplugins
  • mongodbdefaults
  • mongodbfix
  • multiprocessing
  • pluginframework
  • pluginloader
  • readable-version
  • readme
  • remove-email-config
  • removefirewallevent
  • rename_logger
  • renameparams
  • requirements
  • rest
  • reuse-mock
  • rm-venv
  • slackalert
  • smtpssl
  • sphinx
  • sphinx-rst-update
  • splunkfixes
  • splunkhecstore_docs
  • splunkhectokentest
  • splunkstore
  • sub_id_rename
  • tests
  • travis
  • userconfig
  • userdoc
  • userecordterm
  • verdev
  • webapp
  • worker-com-fields
  • worker-error-handling
  • workerlogs

pending completion
253

Pull #38

travis-ci-com

web-flow
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.
Pull Request #38: Add unit tests for MongoDBStore

78 of 103 branches covered (75.73%)

Branch coverage included in aggregate %.

55 of 55 new or added lines in 1 file covered. (100.0%)

467 of 542 relevant lines covered (86.16%)

2.58 hits per line

Relevant lines Covered
Build:
Build:
542 RELEVANT LINES 467 COVERED LINES
2.58 HITS PER LINE
Source Files on mongodbtests
  • List 0
  • Changed 10
  • Source Changed 10
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
253 mongodbtests 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 `a... Pull #38 08 Feb 2019 04:00PM UTC web-flow travis-ci-com pending completion  
252 mongodbtests 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 `a... push 08 Feb 2019 03:58PM UTC susam travis-ci-com pending completion  
251 mongodbtests Replace assert_called with assert_called_[once_]with Note that in the tests we do not call a `Mock` object's `assert_called` method although this assert method would have sufficed. That's because `assert_called` method was introduced in Python 3.... Pull #38 08 Feb 2019 03:46PM UTC web-flow travis-ci-com pending completion  
250 mongodbtests Replace assert_called with assert_called_[once_]with Note that in the tests we do not call a `Mock` object's `assert_called` method although this assert method would have sufficed. That's because `assert_called` method was introduced in Python 3.... push 08 Feb 2019 03:45PM UTC susam travis-ci-com pending completion  
249 mongodbtests Add debug statements to print assert_called object Pull #38 08 Feb 2019 02:05PM UTC web-flow travis-ci-com pending completion  
248 mongodbtests Add debug statements to print assert_called object push 08 Feb 2019 02:05PM UTC susam travis-ci-com pending completion  
245 mongodbtests 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. Pull #38 08 Feb 2019 01:31PM UTC web-flow travis-ci-com pending completion  
244 mongodbtests 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. push 08 Feb 2019 01:28PM UTC susam travis-ci-com pending completion  
See All Builds (953)
  • Repo on GitHub
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

© 2025 Coveralls, Inc