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

Improve running of non-standard tests

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      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:
            Unassigned Unassigned
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: