Opened 9 years ago

Closed 9 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.

Change History (4)

comment:1 Changed 9 years ago by anonymous

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

comment:2 Changed 9 years ago by anonymous

Resolution: invalid
Status: newclosed

comment:3 Changed 9 years ago by Malcolm Tredinnick

Resolution: invalid
Status: closedreopened

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

comment:4 Changed 9 years ago by Malcolm Tredinnick

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