+ Variable: INCLUDED 1
+ Variable: INCLUDED 2
+
+ diff --git a/tests/test_templatetags_extends.py b/tests/test_templatetags_extends.py index 76150f3c..fa517031 100644 --- a/tests/test_templatetags_extends.py +++ b/tests/test_templatetags_extends.py @@ -1075,3 +1075,44 @@ class TestExtendsCompat:
This template extends another template.
""", ) + + @djc_test(parametrize=PARAMETRIZE_CONTEXT_BEHAVIOR) + def test_double_include_template_with_extend( + self, + components_settings, + ): + + @register("simple_component") + class SimpleComponent(Component): + template: types.django_html = """ + {% slot 'content' / %} + """ + + template: types.django_html = """ + {% extends 'block.html' %} + {% load component_tags %} + {% block body %} + {% component "simple_component" %} + {% fill "content" %} + {% include 'included.html' with variable="INCLUDED 1" %} + {% include 'included.html' with variable="INCLUDED 2" %} + {% endfill %} + {% endcomponent %} + {% endblock %} + """ + rendered = Template(template).render(Context({"DJC_DEPS_STRATEGY": "ignore"})) + + expected = """ + + + +