1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

newforms-admin: Merged from trunk up to [7583].

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7584 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Brian Rosner
2008-06-07 17:10:16 +00:00
parent 0836745c8e
commit 453d560a94
41 changed files with 763 additions and 373 deletions

View File

@@ -118,7 +118,6 @@ def django_tests(verbosity, interactive, test_labels):
get_apps()
# Load all the test model apps.
test_models = []
for model_dir, model_name in get_test_models():
model_label = '.'.join([model_dir, model_name])
try:
@@ -143,7 +142,13 @@ def django_tests(verbosity, interactive, test_labels):
if not test_labels or model_name in test_labels:
print >> sys.stderr,'****', model_label
extra_tests.append(InvalidModelTestCase(model_label))
try:
# Invalid models are not working apps, so we cannot pass them into
# the test runner with the other test_labels
test_labels.remove(model_name)
except ValueError:
pass
# Run the test suite, including the extra validation tests.
from django.test.simple import run_tests
failures = run_tests(test_labels, verbosity=verbosity, interactive=interactive, extra_tests=extra_tests)