diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2006-10-03 09:53:12 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2006-10-03 09:53:12 +0000 |
| commit | bf6257f1ee6ec5a385af204a5342ca3cba67b127 (patch) | |
| tree | 6ea515d7b6da082b4d8df82fb14c48c58b021272 | |
| parent | 6afa40ea00b20aa02d45d2bafee43fc56cd0df7c (diff) | |
Altered the order of arguments to the test function to match common practice in the rest of management.py.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3887 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/management.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/management.py b/django/core/management.py index a5d7186ac9..cb4e3bcae2 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -1176,7 +1176,7 @@ def runfcgi(args): runfastcgi(args) runfcgi.args = '[various KEY=val options, use `runfcgi help` for help]' -def test(verbosity, app_labels): +def test(app_labels, verbosity=1): "Runs the test suite for the specified applications" from django.conf import settings from django.db.models import get_app, get_apps @@ -1327,7 +1327,7 @@ def execute_from_command_line(action_mapping=DEFAULT_ACTION_MAPPING, argv=None): parser.print_usage_and_exit() elif action == 'test': try: - action_mapping[action](int(options.verbosity), args[1:]) + action_mapping[action](args[1:], int(options.verbosity)) except IndexError: parser.print_usage_and_exit() elif action in ('startapp', 'startproject'): |
