coverage: Bring test_templates.py to 100% coverage.

This commit is contained in:
Tim Abbott 2017-03-04 23:23:45 -08:00
parent 8d9cab2339
commit 6ea3a9cb1d
2 changed files with 1 additions and 2 deletions

View File

@ -87,7 +87,6 @@ not_yet_fully_covered = {
'zerver/tests/test_decorators.py', 'zerver/tests/test_decorators.py',
'zerver/tests/test_email_mirror.py', 'zerver/tests/test_email_mirror.py',
'zerver/tests/test_narrow.py', 'zerver/tests/test_narrow.py',
'zerver/tests/test_templates.py',
'zerver/tests/test_tornado.py', 'zerver/tests/test_tornado.py',
'zerver/tests/test_urls.py', 'zerver/tests/test_urls.py',
# Getting views file coverage to 100% is a major project goal # Getting views file coverage to 100% is a major project goal

View File

@ -124,7 +124,7 @@ class TemplateTestCase(ZulipTestCase):
template = get_template(template_name) template = get_template(template_name)
try: try:
template.render(context) template.render(context)
except Exception: except Exception: # nocoverage # nicer error handler
logging.error("Exception while rendering '{}'".format(template.template.name)) logging.error("Exception while rendering '{}'".format(template.template.name))
raise raise