Browse Source

[5.0.x] Made management command examples more consistent in docs.

Backport of ec7651586d2d94e1ccd8f905c6a3776ad936b62d from main
evananyonga 1 year ago
parent
commit
d56b2105b6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/topics/testing/tools.txt

+ 2 - 2
docs/topics/testing/tools.txt

@@ -2160,8 +2160,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: