-
Notifications
You must be signed in to change notification settings - Fork 400
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
Optionally allow running tests with mongomock #1081
Comments
I see that these tests should be skipped when mongoengine is not available. Why not skip the tests since mongodb is not available? |
That is also an option, but it is still nice to run the tests. In theory users can run a mongodb server via podman and we do provide |
I have opened a pull request to support that use case, please feel free to try out the patch and let us know if that would work for you! |
The problem
factory-boy is packaged in Arch Linux and tests run while building the package in this buildchroot. The mongodb tests require a running mongodb server, mongodb is neither packaged nor is it possible to run a service during building.
Proposed solution
I've patched factory-boy to use mongomock, this succesfully ran the tests. Maybe factory-boy can optionally allow running the tests with
mongomock
when available.The text was updated successfully, but these errors were encountered: