Fix star and tag feature language and add output should be empty test

Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
This commit is contained in:
Micah Jerome Ellison 2021-04-24 15:18:11 -07:00 committed by Jonathan Wren
parent 8faa3ae32d
commit 3d29b6b6a1
3 changed files with 38 additions and 42 deletions

View file

@ -419,14 +419,15 @@ def output_should_not_contain(output, cli_run):
assert output not in cli_run["stdout"]
@then(parse("the output should be\n{output}"))
@then(parse('the output should be "{output}"'))
@then('the output should be "<output>"')
def output_should_be(output, cli_run):
@then(parse("the output should be\n{str_value}"))
@then(parse('the output should be "{str_value}"'))
@then('the output should be "<str_value>"')
@then("the output should be empty")
def output_should_be(str_value, cli_run):
actual_out = cli_run["stdout"].strip()
output = output.strip()
assert output and output == actual_out, failed_msg(
"Output does not match.", output, actual_out
expected = str_value.strip()
assert expected == actual_out, failed_msg(
"Output does not match.", expected, actual_out
)