refactor(tests): strip mongomock_ng references from all test files#229
Open
engFelipeMonteiro wants to merge 2 commits into
Open
refactor(tests): strip mongomock_ng references from all test files#229engFelipeMonteiro wants to merge 2 commits into
engFelipeMonteiro wants to merge 2 commits into
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Strip all
mongomock_ngstring references from test files except the alias importmongomock_ng as mongomock.\n\nChanges across 10 files (40+ individual edits):\n- Import rewrite:from mongomock_ng import X\u2192from mongomock import X\n- Submodule paths:from mongomock_ng.collection import\u2192from mongomock.collection import\n- Variable rename: mongomock_ng_utcnow \u2192 mongomock_utcnow (test__collection_api.py)\n- Test-db strings: mongomock_ng___testing_db \u2192 mongomock___testing_db (test__gridfs.py, test__bulk_operations.py)\n- Comment URL: update vmalloc/mongomock_ng \u2192 vmalloc/mongomock\n- conftest.py kept unchanged (needs module object for sys.modules trick)\n\nAdds tests/test__import_consistency.py with AST-based verification that no mongomock_ng strings leak past imports in any test file.\n\nRationale: clean diffs when porting upstream mongomock PRs. Only 1 line (import mongomock_ng as mongomock) differs from upstream per file.\n\nFiles changed: 11 (10 edits + 1 new test file)