Opened 15 years ago

Closed 15 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 Russell Keith-Magee, 15 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Malcolm Tredinnick, 15 years ago

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).

comment:3 by Malcolm Tredinnick, 15 years ago

Resolution: fixed
Status: newclosed

Fixed in r9708.

Note: See TracTickets for help on using tickets.
Back to Top