mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #31428 -- Allowed empty message in management command self.stdout/err proxies.
This commit is contained in:
committed by
Mariusz Felisiak
parent
5fbc0e07a9
commit
e03eb8db93
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user