From 55fb50217947f742e7981bd94a7ac247c0aa3287 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Thu, 18 May 2023 10:42:01 -0300 Subject: [PATCH] test: Iterate over template.nodelist in apply_template_test --- ietf/utils/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/utils/tests.py b/ietf/utils/tests.py index 69c16be6d..fe715b14d 100644 --- a/ietf/utils/tests.py +++ b/ietf/utils/tests.py @@ -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: