diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2018-07-22 21:41:47 +0430 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-09-11 11:15:42 -0400 |
| commit | 5195b99e2c3804ec5f9c98d29e0cf76bf44b0cec (patch) | |
| tree | 308f211170a1180c40ce33adac835fe040825fcc /tests/user_commands | |
| parent | de8eb07c7ae619e42781c9c0adecb521cdc3a353 (diff) | |
Fixed #29560 -- Added --force-color management command option.
Diffstat (limited to 'tests/user_commands')
| -rw-r--r-- | tests/user_commands/tests.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/user_commands/tests.py b/tests/user_commands/tests.py index 50b1b4244f..45fe0aaf46 100644 --- a/tests/user_commands/tests.py +++ b/tests/user_commands/tests.py @@ -179,18 +179,18 @@ class CommandTests(SimpleTestCase): def test_call_command_unrecognized_option(self): msg = ( 'Unknown option(s) for dance command: unrecognized. Valid options ' - 'are: example, help, integer, no_color, opt_3, option3, ' - 'pythonpath, settings, skip_checks, stderr, stdout, style, ' - 'traceback, verbosity, version.' + 'are: example, force_color, help, integer, no_color, opt_3, ' + 'option3, pythonpath, settings, skip_checks, stderr, stdout, ' + 'style, traceback, verbosity, version.' ) with self.assertRaisesMessage(TypeError, msg): management.call_command('dance', unrecognized=1) msg = ( 'Unknown option(s) for dance command: unrecognized, unrecognized2. ' - 'Valid options are: example, help, integer, no_color, opt_3, ' - 'option3, pythonpath, settings, skip_checks, stderr, stdout, ' - 'style, traceback, verbosity, version.' + 'Valid options are: example, force_color, help, integer, no_color, ' + 'opt_3, option3, pythonpath, settings, skip_checks, stderr, ' + 'stdout, style, traceback, verbosity, version.' ) with self.assertRaisesMessage(TypeError, msg): management.call_command('dance', unrecognized=1, unrecognized2=1) |
