From 76e555aefba5cc019c02a02574fad5748688ff5b Mon Sep 17 00:00:00 2001 From: KKlochko Date: Mon, 27 Jan 2025 12:27:58 +0200 Subject: [PATCH] Refactor the test steps to show stdout. --- features/steps/cli_runner_steps.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/features/steps/cli_runner_steps.py b/features/steps/cli_runner_steps.py index 9410edb..bedae9d 100644 --- a/features/steps/cli_runner_steps.py +++ b/features/steps/cli_runner_steps.py @@ -22,14 +22,17 @@ def then_cli_executed_successfully(context, result): @then('the CLI output contains "{string}"') def then_cli_output_contains(context, string): + print(f"Got: {context.cli_result.stdout}") assert string in context.cli_result.stdout @then('the CLI output doesn\'t contains "{string}"') def then_cli_output_contains(context, string): + print(f"Got: {context.cli_result.stdout}") assert not (string in context.cli_result.stdout) @then('the CLI contains the error: "{string}"') def then_cli_output_contains_error(context, string): + print(f"Got: {context.cli_result.stdout}") assert string in context.cli_result.stdout