From 6ea3a9cb1da2ffb5242e09db515aab921cf0dd01 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 4 Mar 2017 23:23:45 -0800 Subject: [PATCH] coverage: Bring test_templates.py to 100% coverage. --- tools/test-backend | 1 - zerver/tests/test_templates.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/test-backend b/tools/test-backend index 94aa2576fa..7e75b1158a 100755 --- a/tools/test-backend +++ b/tools/test-backend @@ -87,7 +87,6 @@ not_yet_fully_covered = { 'zerver/tests/test_decorators.py', 'zerver/tests/test_email_mirror.py', 'zerver/tests/test_narrow.py', - 'zerver/tests/test_templates.py', 'zerver/tests/test_tornado.py', 'zerver/tests/test_urls.py', # Getting views file coverage to 100% is a major project goal diff --git a/zerver/tests/test_templates.py b/zerver/tests/test_templates.py index cfd3375fc1..57c92a693a 100644 --- a/zerver/tests/test_templates.py +++ b/zerver/tests/test_templates.py @@ -124,7 +124,7 @@ class TemplateTestCase(ZulipTestCase): template = get_template(template_name) try: template.render(context) - except Exception: + except Exception: # nocoverage # nicer error handler logging.error("Exception while rendering '{}'".format(template.template.name)) raise