#20456: Easier unit testing for class-based views
-----------------------------------+--------------------------------------
Reporter: Benoît Bryon | Owner: Felipe Lee
Type: New feature | Status: assigned
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: cbv test | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"c2c27867ef1d4ad32369f8cda42a6d72b262cae5" c2c27867]:
{{{
#!CommitTicketReference repository=""
revision="c2c27867ef1d4ad32369f8cda42a6d72b262cae5"
Refs #20456 -- Moved initialization of HEAD method based on GET to the
View.setup() for generic views.
This will ease unit testing of views since setup will essentially do
everything needed to set the view instance up (other than instantiating
it). Credit for idea goes to Vincent Prouillet.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/20456#comment:18>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/069.43b1356f6cdf25534a93eaad28df2a97%40djangoproject.com.