mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
Fix test?
This commit is contained in:
parent
fce60a364f
commit
0aee900ffc
2 changed files with 1 additions and 11 deletions
|
@ -29,9 +29,8 @@ Feature: Basic reading and writing to a journal
|
||||||
Given we use the config "basic.yaml"
|
Given we use the config "basic.yaml"
|
||||||
When we run "jrnl ''"
|
When we run "jrnl ''"
|
||||||
Then we should get no error
|
Then we should get no error
|
||||||
And the unstripped output should be
|
And the output should be
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Scenario: Filtering for dates
|
Scenario: Filtering for dates
|
||||||
|
|
|
@ -210,15 +210,6 @@ def check_output(context, text=None):
|
||||||
for line_text, line_out in zip(text, out):
|
for line_text, line_out in zip(text, out):
|
||||||
assert line_text.strip() == line_out.strip(), [line_text.strip(), line_out.strip()]
|
assert line_text.strip() == line_out.strip(), [line_text.strip(), line_out.strip()]
|
||||||
|
|
||||||
@then('the unstripped output should be')
|
|
||||||
@then('the unstripped output should be "{text}"')
|
|
||||||
def check_output(context, text=None):
|
|
||||||
text = (text or context.text).splitlines()
|
|
||||||
out = context.stdout_capture.getvalue().splitlines()
|
|
||||||
assert len(text) == len(out), "Output has {} lines (expected: {})".format(len(out), len(text))
|
|
||||||
for line_text, line_out in zip(text, out):
|
|
||||||
assert line_text == line_out, [line_text, line_out]
|
|
||||||
|
|
||||||
|
|
||||||
@then('the output should contain "{text}" in the local time')
|
@then('the output should contain "{text}" in the local time')
|
||||||
def check_output_time_inline(context, text):
|
def check_output_time_inline(context, text):
|
||||||
|
|
Loading…
Add table
Reference in a new issue