summaryrefslogtreecommitdiff
path: root/tests/admin_scripts/management/commands
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-07-30 11:30:20 -0400
committerTim Graham <timograham@gmail.com>2013-07-30 11:30:20 -0400
commitdffda2ba4e55d4567b3a829d410dae794636ebdd (patch)
tree821c021a77ef6dd1d1cc2429fb4ad043fb14eeb6 /tests/admin_scripts/management/commands
parent5b47a9c5a0dcb513dc5ff68b617b3aa374c90f3b (diff)
Fixed a test that depended on the DB backend; refs #19877. Thanks Loic.
Diffstat (limited to 'tests/admin_scripts/management/commands')
-rw-r--r--tests/admin_scripts/management/commands/color_command.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/admin_scripts/management/commands/color_command.py b/tests/admin_scripts/management/commands/color_command.py
new file mode 100644
index 0000000000..02da0a14ab
--- /dev/null
+++ b/tests/admin_scripts/management/commands/color_command.py
@@ -0,0 +1,9 @@
+from django.core.management.base import NoArgsCommand
+
+
+class Command(NoArgsCommand):
+ help = "Test color output"
+ requires_model_validation = False
+
+ def handle_noargs(self, **options):
+ return self.style.SQL_KEYWORD('BEGIN')