mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #31428 -- Allowed empty message in management command self.stdout/err proxies.
This commit is contained in:
parent
5fbc0e07a9
commit
e03eb8db93
5 changed files with 5 additions and 4 deletions
|
@ -124,7 +124,7 @@ class CommandTests(SimpleTestCase):
|
|||
def test_calling_a_command_with_only_empty_parameter_should_ends_gracefully(self):
|
||||
out = StringIO()
|
||||
management.call_command('hal', "--empty", stdout=out)
|
||||
self.assertIn("Dave, I can't do that.\n", out.getvalue())
|
||||
self.assertEqual(out.getvalue(), "\nDave, I can't do that.\n")
|
||||
|
||||
def test_calling_command_with_app_labels_and_parameters_should_be_ok(self):
|
||||
out = StringIO()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue