added context mananger methods to mockmongo client by TravisHeppner · Pull Request #633 · mongomock/mongomock
Copy link
Contributor
TravisHeppner
commented
May 27, 2020
TravisHeppner
commented
The mockmongo client lacks the enter and exit methods that enables the use of 'with' syntax.
Simple pull request to add those methods.
Copy link
Codecov Report
Merging #633 into develop will increase coverage by
0.00%.
The diff coverage is100.00%.
@@ 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.
Copy link
Member
pcorpet
commented
May 29, 2020
pcorpet commented
May 29, 2020Perfect, thanks.
pcorpet
merged commit
26058e8
into
mongomock:develop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters