#17366: Deprecate loading tests from models.py
--------------------------------------+------------------------------------
     Reporter:  Alex                  |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  Testing framework     |                  Version:  SVN
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  1                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by russellm):

 There is a reason that models.py was searched for tests -- it's to catch
 any doctests that are defined on model methods.

 I'm not necessarily arguing against the decision to deprecate models.py as
 a source of tests, but given that it wasn't a completely arbitrary
 decision in the first place, it's worth documenting the specific
 consequences.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17366#comment:1>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to