store status code so tests don't fail

This commit is contained in:
Jonathan Wren 2022-09-25 18:39:21 -07:00
parent ab70c56cf6
commit c6a564e722

View file

@ -44,7 +44,7 @@ def we_run_jrnl(cli_run, capsys, keyring):
mocks[id] = stack.enter_context(factories[id]())
try:
cli()
cli_run["status"] = cli() or 0
except StopIteration:
# This happens when input is expected, but don't have any input left
pass