mirror of https://github.com/zulip/zulip.git
coverage: Bring test_templates.py to 100% coverage.
This commit is contained in:
parent
8d9cab2339
commit
6ea3a9cb1d
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue