From f8f017c221cf477fd7a7f8645c6961a062654a74 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 30 Nov 2016 16:00:26 -0800 Subject: [PATCH] test_runner: Fix template rendering test. The previous logic would allow the same template to be added to both the shallow_tested list and the normal list. --- zerver/lib/test_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/test_runner.py b/zerver/lib/test_runner.py index e4b77831c1..7fe9f4fc86 100644 --- a/zerver/lib/test_runner.py +++ b/zerver/lib/test_runner.py @@ -163,7 +163,7 @@ class Runner(DiscoverRunner): if hasattr(sender, 'template'): template_name = sender.template.name if template_name not in self.templates_rendered: - if context.get('shallow_tested'): + if context.get('shallow_tested') and template_name not in self.templates_rendered: self.shallow_tested_templates.add(template_name) else: self.templates_rendered.add(template_name)