-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update mongo tests #47
Conversation
3321f90
to
a3a4956
Compare
a3a4956
to
7ac7740
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few questions/comments.
193ac57
to
7197959
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look good to me, but I'll wait for the GH Actions checks to pass before actually approving.
Yes, please let us know when the GH Actions all pass and then we will finalize our reviews. |
7197959
to
ea7b9fc
Compare
I will add a test to boost coverage and make the Coveralls check happy. |
The 'mongomock://' URI is deprecated, so the connection URIs now start with 'mongodb://'.
This test broke once the 'mongomock://' URI was no longer supported. I had to rewrite the test to use the new connection method.
The mongomock connection method introduced in MongoEngine 0.27.0 is not recognized in Python 3.6.
This commit augments `connect_from_config()` with a `client` argument to determine which client class to use when called. The default client class for MongoEngine (`pymongo.MongoClient`) is explicitly made the default value so alternative client classes can be specified where necessary.
Connect MongoEngine with mongomock to test connections from a configuration.
ea7b9fc
to
13e08b6
Compare
The 6.0 release contains a temporary workaround to a regression in Cython 3.10.0a10 that throws an attribute error. See more details upstream at yaml/pyyaml#601 and yaml/pyyaml#702.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strong work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍 👍
This fabricated subject covers domains that end in "fed.us" to boost test coverage.
The Docker Compose package is causing a dependency conflict. And with respect to #40, the package no longer belongs in this project.
1ec6a6a
to
a24c345
Compare
🗣 Description
These changes update tests that connect to a mock Mongo database.
💭 Motivation and context
🧪 Testing
I modified the tests that connect to a mock Mongo database to use the new connection method. After my changes, all tests passed locally.
✅ Pre-approval checklist
✅ Pre-merge checklist
✅ Post-merge checklist