GH13983 - Add additional check for bad templates

This commit is contained in:
David O Neill
2024-02-02 15:48:17 +00:00
committed by Dave
parent 5d1bb2125e
commit 19f80c0a26
2 changed files with 21 additions and 5 deletions

View File

@@ -155,4 +155,4 @@ def test_build_notification_message_undefined(run_module, admin_user, organizati
nt = NotificationTemplate.objects.get(id=result['id'])
body = job.build_notification_message(nt, 'running')
assert '{"started_by": "My Placeholder"}' in body[1]
assert 'The template rendering return a blank body' in body[1]