﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12089	test client fails to collect sub-contexts	Antti Kaihola	nobody	"If a main template renders a sub-template with a modified or newly created context, test client's `response.context` fails to include the modified context. An example using `{% with %}` and `{% include %}`:

=== main-template.html ===
{{{
{% with ""some-value"" as subvariable %}
  {% include sub-template.html %}
{% endwith %}
}}}

=== sub-template.html ===
{{{
The value of subvariable is ""{{ subvariable }}"".
}}}

If the test client requests a view which renders `main-template.html`, the variable `subvariable` can't be found in `response.context` as returned by `TestClient.get()`.

The same happens if a custom template tag creates a new context and renders another template."	Bug	new	Testing framework	dev	Normal		template context TestClient		Accepted	1	0	0	1	0	0
