mirror of https://github.com/nucypher/nucypher.git
Adapt Ursula CLI tests to being asked for worker account password
parent
8dcf5a799d
commit
1bd2aae362
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue