trigger.test package

Submodules

trigger.test.tests module

trigger.test.utils module

Defines utility methods for testing trigger rules and events.

trigger.test.utils.create_trigger_event(trigger_type=None, rule=None, description=None, occurred=None)

Creates a trigger event model for unit testing

Returns:The trigger event model
Return type:trigger.models.TriggerEvent
trigger.test.utils.create_trigger_rule(name=None, trigger_type='USER', configuration=None, is_active=True)

Creates a trigger rule model for unit testing

Returns:The trigger rule model
Return type:trigger.models.TriggerRule

Module contents