Skip to content

Commit

Permalink
Made management command examples more consistent in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
evananyonga authored and felixxm committed Jan 9, 2024
1 parent ecd3071 commit ec76515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/topics/testing/tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit ec76515

Please sign in to comment.