test: Iterate over template.nodelist in apply_template_test

This commit is contained in:
Jennifer Richards 2023-05-18 10:42:01 -03:00
parent 47e2b0b027
commit 55fb502179
No known key found for this signature in database
GPG key ID: 9B2BF5C5ADDA6A6E

View file

@ -209,7 +209,7 @@ class TemplateChecksTestCase(TestCase):
errors = []
for path, template in self.templates.items():
origin = str(template.origin).replace(settings.BASE_DIR, '')
for node in template:
for node in template.nodelist:
for child in node.get_nodes_by_type(node_type):
errors += func(child, origin, *args, **kwargs)
if errors: