mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-12 01:18:31 +02:00
Fix user input mock - was not appropriately checking return value
This commit is contained in:
parent
6e24769294
commit
bade98ef0d
1 changed files with 2 additions and 2 deletions
|
@ -190,12 +190,12 @@ def config_var_in_memory(
|
||||||
|
|
||||||
@then("we should be prompted for a password")
|
@then("we should be prompted for a password")
|
||||||
def password_was_called(cli_run):
|
def password_was_called(cli_run):
|
||||||
assert cli_run["mocks"]["user_input"].called
|
assert cli_run["mocks"]["user_input"].return_value.input.called
|
||||||
|
|
||||||
|
|
||||||
@then("we should not be prompted for a password")
|
@then("we should not be prompted for a password")
|
||||||
def password_was_not_called(cli_run):
|
def password_was_not_called(cli_run):
|
||||||
assert not cli_run["mocks"]["user_input"].called
|
assert not cli_run["mocks"]["user_input"].return_value.input.called
|
||||||
|
|
||||||
|
|
||||||
@then(parse("the cache directory should contain the files\n{file_list}"))
|
@then(parse("the cache directory should contain the files\n{file_list}"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue