Code

Opened 5 years ago

Closed 5 years ago

#9963 closed (fixed)

Add a stub tests.py to the stub application produced by startapp

Reported by: russellm 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).

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 5 years ago by mtredinnick

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 5 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r9708.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.