[Django] #22369: Times a template is used using assertTemplateUsed

5 views
Skip to first unread message

Django

unread,
Apr 1, 2014, 2:52:04 PM4/1/14
to django-...@googlegroups.com
#22369: Times a template is used using assertTemplateUsed
-----------------------------------+-----------------------------
Reporter: anonymous | Owner: nobody
Type: New feature | Status: new
Component: Testing framework | Version: 1.6
Severity: Normal | Keywords: assert, testing
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+-----------------------------
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='')

--
Ticket URL: <https://code.djangoproject.com/ticket/22369>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 8, 2014, 7:15:11 PM4/8/14
to django-...@googlegroups.com
#22369: Add ability to assert number of times a template is used for
assertTemplateUsed
-----------------------------------+------------------------------------

Reporter: anonymous | Owner: nobody
Type: New feature | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: assert, testing | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by timo):

* needs_better_patch: => 0
* needs_tests: => 0
* version: 1.6 => master
* needs_docs: => 0
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/22369#comment:1>

Django

unread,
Apr 14, 2014, 10:51:36 AM4/14/14
to django-...@googlegroups.com
#22369: Add ability to assert number of times a template is used for
assertTemplateUsed
-------------------------------------+-------------------------------------
Reporter: anonymous | Owner:
Type: New feature | jrothenbuhler
Component: Testing framework | Status: assigned
Severity: Normal | Version: master
Keywords: assert, testing | Resolution:
Has patch: 0 | Triage Stage: Accepted
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by jrothenbuhler):

* owner: nobody => jrothenbuhler
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/22369#comment:2>

Django

unread,
Apr 14, 2014, 3:20:52 PM4/14/14
to django-...@googlegroups.com
#22369: Add ability to assert number of times a template is used for
assertTemplateUsed
-------------------------------------+-------------------------------------
Reporter: anonymous | Owner:
Type: New feature | jrothenbuhler
Component: Testing framework | Status: assigned
Severity: Normal | Version: master
Keywords: assert, testing | Resolution:
Has patch: 1 | Triage Stage: Accepted

Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by jrothenbuhler):

* has_patch: 0 => 1


Comment:

Pull request: https://github.com/django/django/pull/2549

--
Ticket URL: <https://code.djangoproject.com/ticket/22369#comment:3>

Django

unread,
Apr 14, 2014, 3:28:57 PM4/14/14
to django-...@googlegroups.com
#22369: Add ability to assert number of times a template is used for
assertTemplateUsed
-------------------------------------+-------------------------------------
Reporter: anonymous | Owner:
Type: New feature | jrothenbuhler
Component: Testing framework | Status: assigned
Severity: Normal | Version: master
Keywords: assert, testing | Resolution:
Has patch: 1 | Triage Stage: Accepted
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 1
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by charettes):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/22369#comment:4>

Django

unread,
Apr 14, 2014, 3:56:35 PM4/14/14
to django-...@googlegroups.com
#22369: Add ability to assert number of times a template is used for
assertTemplateUsed
-------------------------------------+-------------------------------------
Reporter: anonymous | Owner:
Type: New feature | jrothenbuhler
Component: Testing framework | Status: closed
Severity: Normal | Version: master
Keywords: assert, testing | Resolution: fixed

Has patch: 1 | Triage Stage: Accepted
Needs tests: 0 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 1
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette <charette.s@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"17c18844561431aabed89c3bd48de951db7d13ab"]:
{{{
#!CommitTicketReference repository=""
revision="17c18844561431aabed89c3bd48de951db7d13ab"
Fixed #22369 -- Added count parameter to assertTemplateUsed
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/22369#comment:5>

Reply all
Reply to author
Forward
0 new messages