feat(automations): add event trigger source, selector and registration

This commit is contained in:
CREDO23 2026-05-29 17:48:48 +02:00
parent 4ba637ea44
commit acd673023a
5 changed files with 157 additions and 0 deletions

View file

@ -0,0 +1,18 @@
"""The ``event`` trigger self-registers on the triggers store at import."""
from __future__ import annotations
import pytest
from app.automations.triggers import get_trigger
from app.automations.triggers.builtin.event.params import EventTriggerParams
pytestmark = pytest.mark.unit
def test_event_trigger_is_registered() -> None:
definition = get_trigger("event")
assert definition is not None
assert definition.type == "event"
assert definition.params_model is EventTriggerParams