#17366 closed Cleanup/optimization (fixed)
Deprecate loading tests from models.py
Description ¶
This is inconsistent with pretty much every other test tool, and really doesn't make a whole lot of sense.
Change History (9)
comment:1 by , 13 years ago
comment:2 by , 12 years ago
Component: | Testing framework → Documentation |
---|
comment:3 by , 12 years ago
I don't think this should be a documentation ticket as its scope is much larger than just that, correct?
comment:4 by , 12 years ago
Component: | Documentation → Testing framework |
---|
comment:5 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:6 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
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.