Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4540

Use a separate test setup phase written in python

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.12
    • Affects Version/s: None
    • Component/s: None
    • Python Drivers
    • Not Needed

      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

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: