bugsnag / bugsnag-python

Official BugSnag error monitoring and error reporting for django, flask, tornado and other python apps.
https://docs.bugsnag.com/platforms/python/
MIT License
86 stars 42 forks source link

Session test improvements #366

Closed imjoehaines closed 10 months ago

imjoehaines commented 10 months ago

Goal

This PR improves our session tests in a few ways, primarily:

  1. allowing them to run independently of other tests (currently they only run if other tests run first)
  2. splitting the FakeBugsnagServer's request list into separate lists for events and sessions. This allows sessions to be sent in unit tests without breaking existing tests that expect to only receive events
  3. adding tests that use the delivery thread
  4. all tests now have a session endpoint configured so they all have the capacity to deliver sessions

This PR is fairly large but can be reviewed commit by commit