added context mananger methods to mockmongo client by TravisHeppner · Pull Request #633 · mongomock/mongomock

@TravisHeppner

Copy link

Contributor

The mockmongo client lacks the enter and exit methods that enables the use of 'with' syntax.
Simple pull request to add those methods.

added context mananger methods to mockmongo client

ed288ba

@codecov

Copy link

codecov bot commented

May 27, 2020

edited

Loading

Codecov Report

Merging #633 into develop will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #633   +/-   ##
========================================
  Coverage    94.84%   94.85%           
========================================
  Files           17       17           
  Lines         3281     3285    +4     
========================================
+ Hits          3112     3116    +4     
  Misses         169      169           
Impacted Files Coverage Δ
mongomock/mongo_client.py 97.08% <100.00%> (+0.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c15d173...ed288ba. Read the comment docs.

@pcorpet

Copy link

Member

pcorpet commented

May 29, 2020

Perfect, thanks.

@pcorpet pcorpet merged commit 26058e8 into mongomock:develop

May 29, 2020