Skip to content

Remove pymongo<4.11 pin and switch to mongomock-ng#1115

Merged
rkingsbury merged 3 commits into
materialsproject:mainfrom
rkingsbury:replace-mongomock-with-mongomock-ng
Jun 22, 2026
Merged

Remove pymongo<4.11 pin and switch to mongomock-ng#1115
rkingsbury merged 3 commits into
materialsproject:mainfrom
rkingsbury:replace-mongomock-with-mongomock-ng

Conversation

@rkingsbury

@rkingsbury rkingsbury commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

mongomock is unmaintained; mongomock-ng is an actively maintained fork that supports newer pymongo releases, so the pymongo version ceiling can be dropped as well.

Changes:

  • replace mongomock with mongomock-ng
  • remove pymongo version pin so that the latest releases can be used
  • Bump the MongoDB server used in CI testing to be consistent with the minimum required pymongo version (4.2)

rkingsbury and others added 2 commits June 22, 2026 06:51
mongomock is unmaintained; mongomock-ng is an actively maintained
fork that supports newer pymongo releases, so the pymongo version
ceiling can be dropped as well.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.53%. Comparing base (7d7c1fa) to head (2b1b607).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1115   +/-   ##
=======================================
  Coverage   69.53%   69.53%           
=======================================
  Files          47       47           
  Lines        4103     4103           
=======================================
  Hits         2853     2853           
  Misses       1250     1250           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rkingsbury

Copy link
Copy Markdown
Collaborator Author

Fixes concerns raised in #1043

@rkingsbury rkingsbury added release:minor enhancement dependencies Pull requests that update a dependency file labels Jun 22, 2026
@rkingsbury rkingsbury merged commit 087efd0 into materialsproject:main Jun 22, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement release:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant