mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
test_emails: Don't require test coverage for failed template rendering.
This commit is contained in:
@@ -69,7 +69,7 @@ def email_page(request):
|
||||
templates.append(template)
|
||||
try:
|
||||
data.append(render_email(template, test_context))
|
||||
except Exception as e:
|
||||
except Exception as e: # nocoverage
|
||||
data.append({'template': template, 'failed': True, 'reason': e})
|
||||
return render(request, 'zerver/test_emails.html', {'emails': data})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user