10.6.26. Class cerebro.events.TestEvent

class cerebro.events.TestEvent(event_type, event_id)[source]

Bases: cerebro.events.Event

The test event class.

Methods

The test event is called by pressing the Call test event button on the Python debugging panel. This event is used to check if the event algorythm works properly.

The class object is input into the before_event, after_event, and error_event functions of the event module.

def after_event(event): 
        if event.event_type() == event.EVENT_TEST:
                print('Test event is successful')