Tech Tips
search
Thursday, March 9, 2017
Test that the correct template was used in a view function when testing with RequestFactory in Django
Django has a special assertion method for that purpose:
with
self
.
assertTemplateUsed
(
"agents/incoming_queue.html"
):
response
=
incoming_queue
(
self
.
request
)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment