Fix test?

This commit is contained in:
Aaron Lichtman 2019-11-17 01:54:49 +01:00
parent fce60a364f
commit 0aee900ffc
No known key found for this signature in database
GPG key ID: 22368077DE9F9903
2 changed files with 1 additions and 11 deletions

View file

@ -29,9 +29,8 @@ Feature: Basic reading and writing to a journal
Given we use the config "basic.yaml"
When we run "jrnl ''"
Then we should get no error
And the unstripped output should be
And the output should be
"""
"""
Scenario: Filtering for dates

View file

@ -210,15 +210,6 @@ def check_output(context, text=None):
for line_text, line_out in zip(text, out):
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')
def check_output_time_inline(context, text):