046810c1f6
The runner execs a script without __file__ or __name__: the Test button failed on __file__ and render-mail-template never reached main(). The test no longer imports the renderer, and the renderer calls main() unconditionally like the other integrations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BJu1jvaug4qY1kMgz8wx41
9 lines
382 B
Python
9 lines
382 B
Python
import json
|
|
|
|
# Nothing to connect to. Riposte runs one script per command through exec(),
|
|
# so this cannot import the renderer: it only answers the Test button.
|
|
TEMPLATES = ["sla_breach", "incident_notification", "incident_update", "incident_closure",
|
|
"action_required", "escalation", "threat_bulletin", "info"]
|
|
|
|
print(json.dumps({"ok": True, "templates": TEMPLATES}))
|