Use unittest.mock for patching and mocking in tests

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, we use homegrown utilities for patching properties and parameters in Motor's test suite. This should be replaced with the use of unittest.mock as that offers superior utilities for doing the same thing and ships in the standard library in Python 3.5+.

              Assignee:
              Unassigned
              Reporter:
              Prashant Mital (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: