1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Made management command examples more consistent in docs.

This commit is contained in:
evananyonga 2024-01-05 12:17:37 +03:00 committed by Mariusz Felisiak
parent ecd3071dac
commit ec7651586d

View File

@ -2187,8 +2187,8 @@ redirected into a ``StringIO`` instance::
class ClosepollTest(TestCase):
def test_command_output(self):
out = StringIO()
call_command("closepoll", stdout=out)
self.assertIn("Expected output", out.getvalue())
call_command("closepoll", poll_ids=[1], stdout=out)
self.assertIn('Successfully closed poll "1"', out.getvalue())
.. _skipping-tests: