diff --git a/features/core.feature b/features/core.feature index 598b99f8..23058e12 100644 --- a/features/core.feature +++ b/features/core.feature @@ -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 diff --git a/features/steps/core.py b/features/steps/core.py index b9d6c02c..2ec9e416 100644 --- a/features/steps/core.py +++ b/features/steps/core.py @@ -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):