diff options
| author | Tim Graham <timograham@gmail.com> | 2015-08-18 12:46:03 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-23 19:31:10 -0400 |
| commit | 6a70cb53971a19f2d9e71d5ee24bfb0e844b4d9d (patch) | |
| tree | a12774fd9787b8f8b4581daca60de6beacf8e943 /tests/user_commands/management | |
| parent | 3bbebd06adc36f31877a9c0af6c20c5b5a71a900 (diff) | |
Refs #19973 -- Removed optparse support in management commands per deprecation timeline.
Diffstat (limited to 'tests/user_commands/management')
| -rw-r--r-- | tests/user_commands/management/commands/optparse_cmd.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/user_commands/management/commands/optparse_cmd.py b/tests/user_commands/management/commands/optparse_cmd.py deleted file mode 100644 index 09de44b200..0000000000 --- a/tests/user_commands/management/commands/optparse_cmd.py +++ /dev/null @@ -1,22 +0,0 @@ -from optparse import make_option - -from django.core.management.base import BaseCommand - - -class Command(BaseCommand): - help = "Test optparse compatibility." - args = '' - - option_list = BaseCommand.option_list + ( - make_option("-s", "--style", default="Rock'n'Roll"), - make_option("-x", "--example") - ) - - def handle(self, *args, **options): - options["example"] - # BaseCommand default option is available - options['verbosity'] - assert ( - isinstance(options['verbosity'], int), "verbosity option is not int, but %s" % type(options['verbosity']) - ) - self.stdout.write("All right, let's dance %s." % options["style"]) |
