Opened 11 years ago
Closed 11 years ago
#22369 closed New feature (fixed)
Add ability to assert number of times a template is used for assertTemplateUsed
Description ¶
For instance, using django-autocomplete-light a template from this package is used for each field where you define as an autocomplete field. It'd be nice can check for the times the template is used:
SimpleTestCase.assertTemplateUsed(response, template_name, count=1, msg_prefix=)
Change History (5)
comment:1 by , 11 years ago
Summary: | Times a template is used using assertTemplateUsed → Add ability to assert number of times a template is used for assertTemplateUsed |
---|---|
Triage Stage: | Unreviewed → Accepted |
Version: | 1.6 → master |
comment:2 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 11 years ago
Has patch: | set |
---|
comment:4 by , 11 years ago
Patch needs improvement: | set |
---|
comment:5 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Pull request: https://github.com/django/django/pull/2549