-
Type: Task
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
Context
We currently use https://github.com/mongodb/mongo-python-driver/blob/master/.evergreen/run-tests.sh to handle the setup and execution of tests. It is awkward and does not exhibit separation of concerns. Once we implement hatch environments in PYTHON-4483, we can create environments for each combination of extras, and scripts within those environments as needed.
The handling of database username and password can be moved to https://github.com/mongodb/mongo-python-driver/blob/master/test/conftest.py, and external setup functions like kinit and encryption setup can be moved to separate scripts.
Definition of done
Replace usage of run-tests.sh with hatch environments and pytest config.
Pitfalls
None
- depends on
-
PYTHON-4069 PyMongo Evergreen and Task Running Refactor
- In Progress
-
PYTHON-4483 Use hatch as task runner
- Closed