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:
parent
ecd3071dac
commit
ec7651586d
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user