Code

Opened 7 years ago

Closed 7 years ago

#6240 closed (invalid)

A file called tests.py in the application directory

Reported by: Wojtek Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In documentation is written "A file called tests.py in the application directory" and everywhere the name of this files stands as 'tests.py'. However, in django (version 0.97-pre) it works only for file called test.py. Doesn't work if you change the name to tests.py.

Attachments (0)

Change History (4)

comment:1 Changed 7 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

In fact only tests defined into models.py seem to be working.

comment:2 Changed 7 years ago by anonymous

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

comment:3 Changed 7 years ago by mtredinnick

  • Resolution invalid deleted
  • Status changed from closed to reopened

Please don't close a ticket without giving a reason or as an anonymous user.

comment:4 Changed 7 years ago by mtredinnick

  • Resolution set to invalid
  • Status changed from reopened to closed

This does work with tests.py (as well as a tests/ directory. The module we are trying to import is given in django.test.simple.TEST_MODULE.

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.