Ejemplo n.º 1
0
def register_all_triggers():
    """Register all triggers into the database."""
    from maasserver.triggers.system import register_system_triggers
    from maasserver.triggers.websocket import register_websocket_triggers

    register_system_triggers()
    register_websocket_triggers()
Ejemplo n.º 2
0
 def test_register_websocket_triggers_does_not_introduce_more(self):
     register_websocket_triggers()
     self.check_triggers_in_database()