modeltests.invalid_models tests are a weird special case
|Reported by:||anthonyb||Owned by:||nobody|
|Severity:||Normal||Keywords:||invalid models invalid_models|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The test application in modeltests.invalid_models is broken, so there's a bunch of special case handling in the test runner to avoid importing/running it, as well as a top level unittest.TestCase class. It also means that you can't specifically run the invalid_models test, and have to run them as part of the whole suite.
Attached is a patch which pushes the broken app down into a subdirectory, and removes ~60 special case lines from runtests.py.