testing is coupled to models.py
|Reported by:||thebanana||Owned by:||Adrian Holovaty|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The default TESTRUNNER will not run tests in an app that does not have a models.py module. I'm not sure if this is by design (although I'd like to see it try to run the tests anyway). Regardless, the documentation should reflect this since it is the current behaviour.
The use-case for having the TESTRUNNER proceed with tests even without a models.py is when you have Django serving up a site whose models all reside in other libraries (e.g. extensive data model library for legacy system). We tout Django as being flexible enough to run without using the Django ORM - testing should be the same.