diff options
| author | evananyonga <evewish@gmail.com> | 2024-01-05 12:17:37 +0300 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-01-09 20:56:46 +0100 |
| commit | d56b2105b6247d0d7816660d24adaf5b603e2a07 (patch) | |
| tree | 0d5d454672b49887475cf66c4ac75039243df10f /docs | |
| parent | 4cba6748a640a158a26a0a0d11597b393bdd3883 (diff) | |
[5.0.x] Made management command examples more consistent in docs.
Backport of ec7651586d2d94e1ccd8f905c6a3776ad936b62d from main
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/testing/tools.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index a415097c56..c8002a82dc 100644 --- a/docs/topics/testing/tools.txt +++ b/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: |
