Commit 9376d4ed authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Refs #5943, #6107 -- Added framework and tests to check for the correct...

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
parent 96a47da0
Loading
Loading
Loading
Loading
+0 −0

Empty file added.

+0 −0

Empty file added.

+0 −0

Empty file added.

+10 −0
Original line number Diff line number Diff line
from django.core.management.base import AppCommand

class Command(AppCommand):
    help = 'Test Application-based commands'
    requires_model_validation = False
    args = '[appname ...]'

    def handle_app(self, app, **options):
        print 'EXECUTE:AppCommand app=%s, options=%s' % (app, sorted(options.items()))
        
+9 −0
Original line number Diff line number Diff line
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()))
Loading