From ec7651586d2d94e1ccd8f905c6a3776ad936b62d Mon Sep 17 00:00:00 2001 From: evananyonga Date: Fri, 5 Jan 2024 12:17:37 +0300 Subject: [PATCH] Made management command examples more consistent in docs. --- docs/topics/testing/tools.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index 068e452ad0b2..cd05db2cf84f 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -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: