Procházet zdrojové kódy

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

Backport of ec7651586d2d94e1ccd8f905c6a3776ad936b62d from main
evananyonga před 1 rokem
rodič
revize
d56b2105b6
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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: