Fix for low line lenghts on fancy exporter

See https://github.com/jrnl-org/jrnl/pull/1219
This commit is contained in:
MinchinWeb 2021-05-09 13:52:43 -06:00
commit d40014656f
5 changed files with 79 additions and 2 deletions

View file

@ -12,6 +12,14 @@ from behave import given
from behave import then
@then("the output should be {width:d} columns wide")
def check_output_width(context, width):
out = context.stdout_capture.getvalue()
out_lines = out.splitlines()
for line in out_lines:
assert len(line) <= width
@then("the output should be parsable as json")
def check_output_json(context):
out = context.stdout_capture.getvalue()