mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-20 05:37:43 +00:00
Refactor the test steps to show stdout.
This commit is contained in:
@@ -22,14 +22,17 @@ def then_cli_executed_successfully(context, result):
|
|||||||
|
|
||||||
@then('the CLI output contains "{string}"')
|
@then('the CLI output contains "{string}"')
|
||||||
def then_cli_output_contains(context, string):
|
def then_cli_output_contains(context, string):
|
||||||
|
print(f"Got: {context.cli_result.stdout}")
|
||||||
assert string in context.cli_result.stdout
|
assert string in context.cli_result.stdout
|
||||||
|
|
||||||
|
|
||||||
@then('the CLI output doesn\'t contains "{string}"')
|
@then('the CLI output doesn\'t contains "{string}"')
|
||||||
def then_cli_output_contains(context, string):
|
def then_cli_output_contains(context, string):
|
||||||
|
print(f"Got: {context.cli_result.stdout}")
|
||||||
assert not (string in context.cli_result.stdout)
|
assert not (string in context.cli_result.stdout)
|
||||||
|
|
||||||
@then('the CLI contains the error: "{string}"')
|
@then('the CLI contains the error: "{string}"')
|
||||||
def then_cli_output_contains_error(context, string):
|
def then_cli_output_contains_error(context, string):
|
||||||
|
print(f"Got: {context.cli_result.stdout}")
|
||||||
assert string in context.cli_result.stdout
|
assert string in context.cli_result.stdout
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user