mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-04 07:26:14 +02:00
enforce positive initial linewrap
Check column widths update gitignore throw error when linewrap too small simply check for large enough linewrap value
This commit is contained in:
parent
d3589fae60
commit
2d4ba1bf2f
6 changed files with 80 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue