mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-07 00:36:13 +02:00
add flush output steps to behave, update delete flag tests
This commit is contained in:
parent
bb5f7a830a
commit
242467da37
2 changed files with 56 additions and 17 deletions
|
@ -355,6 +355,26 @@ def no_error(context):
|
|||
assert context.exit_status == 0, context.exit_status
|
||||
|
||||
|
||||
@then("we flush the output")
|
||||
def flush_stdout(context):
|
||||
context.stdout_capture.truncate(0)
|
||||
context.stdout_capture.seek(0)
|
||||
|
||||
|
||||
@then("we flush the error output")
|
||||
def flush_stderr(context):
|
||||
context.stderr_capture.truncate(0)
|
||||
context.stderr_capture.seek(0)
|
||||
|
||||
|
||||
@then("we flush all the output")
|
||||
def flush_stderr(context):
|
||||
context.execute_steps('''
|
||||
Then we flush the output
|
||||
Then we flush the error output
|
||||
''')
|
||||
|
||||
|
||||
@then("the output should be")
|
||||
@then("the output should be empty")
|
||||
@then('the output should be "{text}"')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue