update password mock to use rich console instead of getpass

This commit is contained in:
Jonathan Wren 2022-05-28 13:52:17 -07:00
parent 4636f1a3ef
commit 1461f03511
2 changed files with 11 additions and 6 deletions

View file

@ -164,12 +164,12 @@ def config_var_in_memory(
@then("we should be prompted for a password")
def password_was_called(cli_run):
assert cli_run["mocks"]["getpass"].called
assert cli_run["mocks"]["rich_console_input"].called
@then("we should not be prompted for a password")
def password_was_not_called(cli_run):
assert not cli_run["mocks"]["getpass"].called
assert not cli_run["mocks"]["rich_console_input"].called
@then(parse("the cache directory should contain the files\n{file_list}"))