Fix user input mock - was not appropriately checking return value

This commit is contained in:
Micah Jerome Ellison 2023-01-28 14:59:36 -08:00 committed by Jonathan Wren
parent 6e24769294
commit bade98ef0d

View file

@ -190,12 +190,12 @@ def config_var_in_memory(
@then("we should be prompted for a password")
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")
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}"))