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:
Adarsh S 2016-12-10 01:13:45 +05:30 committed by Tim Abbott
parent 1886f0a015
commit 31be2534b3
1 changed files with 1 additions and 1 deletions

View File

@ -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: