From 917f350cfa26321a10ac32eddb8cd9c690ceb34a Mon Sep 17 00:00:00 2001 From: Christophe Gabard Date: Fri, 8 Oct 2021 14:31:19 +0200 Subject: [PATCH 1/2] Update testing.md Try clarify use of `result.stderr` --- docs/tutorial/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/testing.md b/docs/tutorial/testing.md index 108ffc344..e16eec1f6 100644 --- a/docs/tutorial/testing.md +++ b/docs/tutorial/testing.md @@ -70,7 +70,7 @@ Here we are checking that the exit code is 0, as it is for programs that exit wi Then we check that the text printed to "standard output" contains the text that our CLI program prints. !!! tip - You could also check `result.stderr` for "standard error". + You could also check `result.stderr` for "standard error" independently from "standard output" if your `CliRunner` instance is created with the `mix_stderr=False` argument. !!! info If you need a refresher about what is "standard output" and "standard error" check the section in [Printing and Colors: "Standard Output" and "Standard Error"](printing.md#standard-output-and-standard-error){.internal-link target=_blank}. From 9d643eea3d64466c1cac47a667332013a8e98af5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 2 Jul 2022 17:34:17 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20for?= =?UTF-8?q?mat=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/tutorial/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/testing.md b/docs/tutorial/testing.md index e16eec1f6..c8b2b7612 100644 --- a/docs/tutorial/testing.md +++ b/docs/tutorial/testing.md @@ -70,7 +70,7 @@ Here we are checking that the exit code is 0, as it is for programs that exit wi Then we check that the text printed to "standard output" contains the text that our CLI program prints. !!! tip - You could also check `result.stderr` for "standard error" independently from "standard output" if your `CliRunner` instance is created with the `mix_stderr=False` argument. + You could also check `result.stderr` for "standard error" independently from "standard output" if your `CliRunner` instance is created with the `mix_stderr=False` argument. !!! info If you need a refresher about what is "standard output" and "standard error" check the section in [Printing and Colors: "Standard Output" and "Standard Error"](printing.md#standard-output-and-standard-error){.internal-link target=_blank}.