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

Improve the test suite EventListener api

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 4.3.3
    • Affects Version/s: None
    • Component/s: None
    • None

      The test suite uses the EventListener class extensively. It would be nice to refactor the api to make the tests less cumbersome to read and write, eg this:

              self.assertEqual(0, len(listener.results["failed"]))
      

      could become:

              self.assertEqual(0, len(listener.failed_events))
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: