From 89f40e36246100df6a11316c31a76712ebc6c501 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Tue, 26 Feb 2013 09:53:47 +0100 Subject: Merged regressiontests and modeltests into the test root. --- .../admin_scripts/management/commands/__init__.py | 0 .../admin_scripts/management/commands/app_command.py | 11 ----------- .../admin_scripts/management/commands/base_command.py | 17 ----------------- .../management/commands/custom_startproject.py | 11 ----------- .../admin_scripts/management/commands/label_command.py | 10 ---------- .../admin_scripts/management/commands/noargs_command.py | 10 ---------- 6 files changed, 59 deletions(-) delete mode 100644 tests/regressiontests/admin_scripts/management/commands/__init__.py delete mode 100644 tests/regressiontests/admin_scripts/management/commands/app_command.py delete mode 100644 tests/regressiontests/admin_scripts/management/commands/base_command.py delete mode 100644 tests/regressiontests/admin_scripts/management/commands/custom_startproject.py delete mode 100644 tests/regressiontests/admin_scripts/management/commands/label_command.py delete mode 100644 tests/regressiontests/admin_scripts/management/commands/noargs_command.py (limited to 'tests/regressiontests/admin_scripts/management/commands') diff --git a/tests/regressiontests/admin_scripts/management/commands/__init__.py b/tests/regressiontests/admin_scripts/management/commands/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/tests/regressiontests/admin_scripts/management/commands/app_command.py b/tests/regressiontests/admin_scripts/management/commands/app_command.py deleted file mode 100644 index d26df12642..0000000000 --- a/tests/regressiontests/admin_scripts/management/commands/app_command.py +++ /dev/null @@ -1,11 +0,0 @@ -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()))) - diff --git a/tests/regressiontests/admin_scripts/management/commands/base_command.py b/tests/regressiontests/admin_scripts/management/commands/base_command.py deleted file mode 100644 index 2701f32a05..0000000000 --- a/tests/regressiontests/admin_scripts/management/commands/base_command.py +++ /dev/null @@ -1,17 +0,0 @@ -from optparse import make_option - -from django.core.management.base import BaseCommand - - -class Command(BaseCommand): - option_list = BaseCommand.option_list + ( - make_option('--option_a','-a', action='store', dest='option_a', default='1'), - make_option('--option_b','-b', action='store', dest='option_b', default='2'), - make_option('--option_c','-c', action='store', dest='option_c', default='3'), - ) - 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()))) diff --git a/tests/regressiontests/admin_scripts/management/commands/custom_startproject.py b/tests/regressiontests/admin_scripts/management/commands/custom_startproject.py deleted file mode 100644 index 80c6d6b805..0000000000 --- a/tests/regressiontests/admin_scripts/management/commands/custom_startproject.py +++ /dev/null @@ -1,11 +0,0 @@ -from optparse import make_option - -from django.core.management.commands.startproject import Command as BaseCommand - - -class Command(BaseCommand): - option_list = BaseCommand.option_list + ( - make_option('--extra', - action='store', dest='extra', - help='An arbitrary extra value passed to the context'), - ) diff --git a/tests/regressiontests/admin_scripts/management/commands/label_command.py b/tests/regressiontests/admin_scripts/management/commands/label_command.py deleted file mode 100644 index 3bce1305bc..0000000000 --- a/tests/regressiontests/admin_scripts/management/commands/label_command.py +++ /dev/null @@ -1,10 +0,0 @@ -from django.core.management.base import LabelCommand - - -class Command(LabelCommand): - help = "Test Label-based commands" - requires_model_validation = False - args = '