Adapt Ursula CLI tests to being asked for worker account password

pull/1167/head
David Núñez 2019-07-29 16:33:26 +02:00 committed by Kieran Prasch
parent 8dcf5a799d
commit 1bd2aae362
No known key found for this signature in database
GPG Key ID: 199AB839D4125A62
2 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ def test_coexisting_configurations(click_runner,
'--interactive',
'--config-file', another_ursula_configuration_file_location)
user_input = f'{INSECURE_DEVELOPMENT_PASSWORD}'
user_input = f'{INSECURE_DEVELOPMENT_PASSWORD}\n' * 2
with pytest.raises(Teacher.DetachedWorker):
# Worker init success, but unassigned.
result = click_runner.invoke(nucypher_cli, run_args, input=user_input, catch_exceptions=False)

View File

@ -187,7 +187,7 @@ def test_stake_list(click_runner,
assert str(stake_value) in result.output
def test_ursula_divide_stakes(click_runner,
def test_staker_divide_stakes(click_runner,
stakeholder_configuration_file_location,
token_economics,
manual_staker,
@ -305,7 +305,7 @@ def test_ursula_run(click_runner,
'--dry-run',
'--config-file', custom_config_filepath)
user_input = f'{INSECURE_DEVELOPMENT_PASSWORD}'
user_input = f'{INSECURE_DEVELOPMENT_PASSWORD}\n' * 2
result = click_runner.invoke(nucypher_cli,
init_args,
input=user_input,