Opened 8 years ago

Closed 8 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: UI/UX:

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 Changed 8 years ago by Russell Keith-Magee

Triage Stage: UnreviewedAccepted

comment:2 Changed 8 years ago by Malcolm Tredinnick

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 Changed 8 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

Fixed in r9708.

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