l.t.f.CaptureOops(Fixture) : class documentation

Part of lp.testing.fixture View In Hierarchy

Capture OOPSes notified via zope event notification.
Instance VariablesoopsesA list of the oops objects raised while the fixture is setup.
oops_idsA set of observed oops ids. Used to de-dup reports received over AMQP.
Method setUpQueue Sets up the queue to be used to receive reports.
Method sync Sync the in-memory list of OOPS with the external OOPS source.
Method _setUp Undocumented
Method _add_oops Add an oops if it isn't already recorded.
Method _recordOops Callback from zope publishing to publish oopses.
def _setUp(self):
Undocumented
def setUpQueue(self):
Sets up the queue to be used to receive reports.

The queue is autodelete which means we can only use it once: after that it will be automatically nuked and must be recreated.

def _add_oops(self, report):
Add an oops if it isn't already recorded.

This is called from both amqp and in-appserver situations.

@adapter(ErrorReportEvent)
def _recordOops(self, event):
Callback from zope publishing to publish oopses.
def sync(self):
Sync the in-memory list of OOPS with the external OOPS source.
API Documentation for Launchpad, generated by pydoctor at 2018-05-25 00:00:05.