mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 05:26:13 +02:00
Tests for parsing issue fix
This commit is contained in:
parent
b4e578b63a
commit
539a88ed14
4 changed files with 36 additions and 15 deletions
|
@ -162,8 +162,10 @@ def check_output_time_inline(context, text):
|
|||
assert local_date in out, local_date
|
||||
|
||||
|
||||
@then('the output should contain')
|
||||
@then('the output should contain "{text}"')
|
||||
def check_output_inline(context, text):
|
||||
def check_output_inline(context, text=None):
|
||||
text = text or context.text
|
||||
out = context.stdout_capture.getvalue()
|
||||
if isinstance(out, bytes):
|
||||
out = out.decode('utf-8')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue