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

Migrate fully away from unittest to pytest

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

      Context

      Our existing test suite relies on a delicate, hacky mix of unittest and pytest. This adds significant code complexity and forces us to invent new workarounds due to unittest's poor async support. Refactoring our test infrastructure to more modern standards will reduce the time spent on test maintenance and infrastructure fixes considerably.

      Definition of done

      Unittest should be completely removed from our test infrastructure. Ideally we use pytest alone, but if needed additional dependencies could be included.

      Pitfalls

      We heavily utilize unittest classes throughout our test suite. As a result, untangling the tests from these classes will require careful refactoring of state management into scoped fixtures. 

            Assignee:
            noah.stapp@mongodb.com Noah Stapp
            Reporter:
            noah.stapp@mongodb.com Noah Stapp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: