#36589: assertTemplateUsed asserts against template partial name regardless of
origin
-----------------------------------+------------------------------------
     Reporter:  Jacob Walls        |                    Owner:  (none)
         Type:  Bug                |                   Status:  new
    Component:  Testing framework  |                  Version:  dev
     Severity:  Release blocker    |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------
Changes (by Natalia Bidart):

 * stage:  Unreviewed => Accepted

Comment:

 Hey Jacob, thanks for the report! I have reproduced how
 `assertTemplateUsed` only matches the partial name (`hello`) and ignores
 the qualified path (`template_used/partials.html#hello`).
 I agree that using `template_used/partials.html#hello` should provide a
 passing test assertion.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36589#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019914df38a6-7c8f5adb-b603-4c3b-b9bd-d3e2b3f1f604-000000%40eu-central-1.amazonses.com.

Reply via email to