mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 14:06:14 +02:00
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:
parent
8faa3ae32d
commit
3d29b6b6a1
3 changed files with 38 additions and 42 deletions
|
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue