mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 05:26:13 +02:00
Fix failing tests and linting issues
This commit is contained in:
parent
65a3b2ce7c
commit
0e1f415c97
3 changed files with 13 additions and 3 deletions
|
@ -216,6 +216,15 @@ def check_output_inline(context, text=None, text2=None):
|
|||
assert text in out or text2 in out, text or text2
|
||||
|
||||
|
||||
@then("the error output should contain")
|
||||
@then('the error output should contain "{text}"')
|
||||
@then('the error output should contain "{text}" or "{text2}"')
|
||||
def check_output_inline(context, text=None, text2=None):
|
||||
text = text or context.text
|
||||
out = context.stderr_capture.getvalue()
|
||||
assert text in out or text2 in out, text or text2
|
||||
|
||||
|
||||
@then('the output should not contain "{text}"')
|
||||
def check_output_not_inline(context, text):
|
||||
out = context.stdout_capture.getvalue()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue