mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	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:
		@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user