mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Better checking for failed runs
This commit is contained in:
parent
2f8d063b5d
commit
467f73d377
2 changed files with 3 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -21,4 +21,5 @@ lib64
|
|||
# Installer logs
|
||||
pip-log.txt
|
||||
.DS_Store
|
||||
.travis-solo
|
||||
|
||||
|
|
|
@ -70,12 +70,11 @@ def run(context, command):
|
|||
|
||||
@then('we should get an error')
|
||||
def has_error(context):
|
||||
assert context.exit_status is not 0
|
||||
assert context.exit_status != 0, context.exit_status
|
||||
|
||||
@then('we should get no error')
|
||||
def no_error(context):
|
||||
assert context.exit_status is 0
|
||||
assert context.failed is False
|
||||
assert context.exit_status is 0, context.exit_status
|
||||
|
||||
@then('the output should be parsable as json')
|
||||
def check_output_json(context):
|
||||
|
|
Loading…
Add table
Reference in a new issue