Fixed #23107 -- Made runserver output respect --no-color.

This commit is contained in:
areski 2014-07-29 15:18:44 +02:00 committed by Tim Graham
parent 7fcfefbc4a
commit 67d7da5fb9
2 changed files with 2 additions and 0 deletions

View file

@ -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):