I am writing a test suite for an application.
In a number of places, I use Django for "assertTemplateUsed". This works for all templates except, as far as I can see, templates loaded via template tags (like include_tag objects).
Is there an alternative way that I claim to use a template when it is loaded through a template tag? I can of course check the lines in the template, but checking the use of the template would be a better solution.
source
share