mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 13:36:14 +02:00
More unicode support
This commit is contained in:
parent
d35502423a
commit
46951cbe12
4 changed files with 15 additions and 6 deletions
|
@ -129,11 +129,15 @@ def check_output_time_inline(context, text):
|
|||
@then('the output should contain "{text}"')
|
||||
def check_output_inline(context, text):
|
||||
out = context.stdout_capture.getvalue()
|
||||
if isinstance(out, bytes):
|
||||
out = out.decode('utf-8')
|
||||
assert text in out
|
||||
|
||||
@then('the output should not contain "{text}"')
|
||||
def check_output_not_inline(context, text):
|
||||
out = context.stdout_capture.getvalue()
|
||||
if isinstance(out, bytes):
|
||||
out = out.decode('utf-8')
|
||||
assert text not in out
|
||||
|
||||
@then('we should see the message "{text}"')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue