mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Major refactoring of django.core.management -- it's now a package rather than a 1730-line single module. All django-admin/manage.py commands are now stored in separate modules. This is backwards-incompatible for people who used django.core.management functions directly
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5898 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7f06e44f99
commit
01adbb55e6
39 changed files with 1972 additions and 1771 deletions
|
@ -51,7 +51,7 @@ class InvalidModelTestCase(unittest.TestCase):
|
|||
self.model_label = model_label
|
||||
|
||||
def runTest(self):
|
||||
from django.core import management
|
||||
from django.core.management.validation import get_validation_errors
|
||||
from django.db.models.loading import load_app
|
||||
from cStringIO import StringIO
|
||||
|
||||
|
@ -61,7 +61,7 @@ class InvalidModelTestCase(unittest.TestCase):
|
|||
self.fail('Unable to load invalid model module')
|
||||
|
||||
s = StringIO()
|
||||
count = management.get_validation_errors(s, module)
|
||||
count = get_validation_errors(s, module)
|
||||
s.seek(0)
|
||||
error_log = s.read()
|
||||
actual = error_log.split('\n')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue