Current mongo-related dependencies prevent test from running because our setup.py installs both bson and pymongo. Doing creates an import error when running the mongoutils tests. Instead, we should just install pymongo because it already comes with bson. See this SO post. We should update requirements.py to ensure we install only pymongo and the latest version; doing so will ensure that tests can be run.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Python 3.8.10
Centos 7.0
6 passed in 102.04s (0:01:42)
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
Description
Current mongo-related dependencies prevent test from running because our setup.py installs both bson and pymongo. Doing creates an import error when running the mongoutils tests. Instead, we should just install pymongo because it already comes with bson. See this SO post. We should update requirements.py to ensure we install only pymongo and the latest version; doing so will ensure that tests can be run.
Type of change
How Has This Been Tested?
6 passed in 102.04s (0:01:42)
Checklist: