diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2008-07-10 12:12:41 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2008-07-10 12:12:41 +0000 |
| commit | 9376d4ed5bd175eff87788ccf11e761fdef42b8b (patch) | |
| tree | 335c379a41e169109aa9e22e41d25211e084b622 /tests/regressiontests/admin_scripts/management/commands/base_command.py | |
| parent | 96a47da015407bb7c57d0d10aef6574309769cc4 (diff) | |
Refs #5943, #6107 -- Added framework and tests to check for the correct operation of django-admin and manage.py. Thanks for Simon Willison and Karen Tracey for their contributions and assistance testing this patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_scripts/management/commands/base_command.py')
| -rw-r--r-- | tests/regressiontests/admin_scripts/management/commands/base_command.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_scripts/management/commands/base_command.py b/tests/regressiontests/admin_scripts/management/commands/base_command.py new file mode 100644 index 0000000000..0187a23b29 --- /dev/null +++ b/tests/regressiontests/admin_scripts/management/commands/base_command.py @@ -0,0 +1,9 @@ +from django.core.management.base import BaseCommand + +class Command(BaseCommand): + help = 'Test basic commands' + requires_model_validation = False + args = '[labels ...]' + + def handle(self, *labels, **options): + print 'EXECUTE:BaseCommand labels=%s, options=%s' % (labels, sorted(options.items())) |
