Opened 16 years ago

Closed 16 years ago

#6240 closed (invalid)

A file called tests.py in the application directory

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

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.

Change History (4)

comment:1 by anonymous, 16 years ago

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

comment:2 by anonymous, 16 years ago

Resolution: invalid
Status: newclosed

comment:3 by Malcolm Tredinnick, 16 years ago

Resolution: invalid
Status: closedreopened

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

comment:4 by Malcolm Tredinnick, 16 years ago

Resolution: invalid
Status: reopenedclosed

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.

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