summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorareski <areski@gmail.com>2014-07-29 15:18:44 +0200
committerTim Graham <timograham@gmail.com>2014-07-30 12:58:53 -0400
commit67d7da5fb9498b811f0168f5df2308ad4743027f (patch)
treef8eb36469229bb866e7eb8dcaa202487a1e586d3 /tests/admin_scripts
parent7fcfefbc4a502c8bf390838be4fa726efb2036dd (diff)
Fixed #23107 -- Made runserver output respect --no-color.
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index b2da37b8d9..0d622699e7 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -1385,6 +1385,7 @@ class CommandTypes(AdminScriptTestCase):
out = StringIO()
call_command('color_command', no_color=True, stdout=out)
+ self.assertEqual(os.environ.get('DJANGO_COLORS', ''), 'nocolor')
self.assertEqual(out.getvalue(), 'BEGIN\n')
def test_base_command(self):