From 31be2534b3ba0ebcf7d29ac439d8f2f64f2d1d3c Mon Sep 17 00:00:00 2001 From: Adarsh S <4d4r5h.5@gmail.com> Date: Sat, 10 Dec 2016 01:13:45 +0530 Subject: [PATCH] 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. --- tools/test-backend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test-backend b/tools/test-backend index 5d3c378480..d63e9fad49 100755 --- a/tools/test-backend +++ b/tools/test-backend @@ -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: