Opened 16 years ago
Closed 16 years ago
#9963 closed (fixed)
Add a stub tests.py to the stub application produced by startapp
Reported by: | Russell Keith-Magee | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | 1.0 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When a user creates a new application, they should get a stub tests.py, hopefully drawing their attention to the need to write test cases for their newly created application.
The stub tests.py should contain a doctest and a unit test, both of which pass asserting something trivial (like 1+1 = 2).
Change History (3)
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 16 years ago
Note:
See TracTickets
for help on using tickets.
Turns out that I've had a local branch with this kind of file in it sitting around since DjangoConf, so I'll drop that in (it even tests that 1+1=2 in a moment of great syncrhonicity).