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:12:14 +0100 |
| commit | ec7651586d2d94e1ccd8f905c6a3776ad936b62d (patch) | |
| tree | 4637d19b98a21c94bbe749519bc86ed3f23f346d /docs/topics/testing | |
| parent | ecd3071dac9bc32028849b1563dc30e49744950e (diff) | |
Made management command examples more consistent in docs.
Diffstat (limited to 'docs/topics/testing')
| -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 068e452ad0..cd05db2cf8 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: |
