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