Opened 17 years ago
Closed 17 years ago
#6140 closed (duplicate)
Test runner does not test apps that do not have model files
Reported by: | Moof | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Keywords: | test middleware | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The last three applications I've created are either middleware or do no database work. I'd like their tests to be included in a standard manage.py test
, and I see no reason to clutter my application with an empty models.py file.
The test runner should be modified to search for a tests module in any of the defined installed_apps. Otherwise debugging can get a bit difficult if you can't be certain your middleware, etc, is not the reason your tests are failing.
Change History (3)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Triage Stage: | Unreviewed → Accepted |
---|
Note:
See TracTickets
for help on using tickets.
I confirm this. Installed applications without models.py are not tested at all by test runner