mirror of
https://github.com/django/django.git
synced 2025-04-15 21:04:36 +00:00
[5.0.x] Made management command examples more consistent in docs.
Backport of ec7651586d2d94e1ccd8f905c6a3776ad936b62d from main
This commit is contained in:
parent
4cba6748a6
commit
d56b2105b6
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user