mirror of https://github.com/zulip/zulip.git
Fix Error: templates have no tests! while running TemplateTestCase.
We need to test all the templates only when we are running the full test suite. While running just the Test Class we need not check all the templates.
This commit is contained in:
parent
1886f0a015
commit
31be2534b3
|
@ -172,7 +172,7 @@ if __name__ == "__main__":
|
|||
full_suite=full_suite)
|
||||
|
||||
templates_not_rendered = test_runner.get_shallow_tested_templates()
|
||||
if templates_not_rendered:
|
||||
if templates_not_rendered and full_suite:
|
||||
missed_count = len(templates_not_rendered)
|
||||
print("\nError: %s templates have no tests!" % (missed_count,))
|
||||
for template in templates_not_rendered:
|
||||
|
|
Loading…
Reference in New Issue