mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-20 05:37:43 +00:00
Update the show all plans command to show if there're no plans.
This commit is contained in:
@@ -3,9 +3,7 @@ from behave import given, when, then
|
||||
|
||||
@given('the CLI arguments are "{arguments}"')
|
||||
def given_cli_arguments(context, arguments):
|
||||
print(f"{arguments}")
|
||||
context.arguments = arguments.split()
|
||||
print(f"{context.arguments}")
|
||||
|
||||
|
||||
@when('I run the CLI')
|
||||
@@ -27,6 +25,10 @@ def then_cli_output_contains(context, string):
|
||||
assert string in context.cli_result.stdout
|
||||
|
||||
|
||||
@then('the CLI output doesn\'t contains "{string}"')
|
||||
def then_cli_output_contains(context, string):
|
||||
assert not (string in context.cli_result.stdout)
|
||||
|
||||
@then('the CLI contains the error: "{string}"')
|
||||
def then_cli_output_contains_error(context, string):
|
||||
assert string in context.cli_result.stdout
|
||||
|
||||
Reference in New Issue
Block a user