Fixed broken CLI tests based on refactor

pull/1417/head
derekpierre 2019-10-15 17:26:08 -04:00
parent 16bf950020
commit ae6ac4b2aa
2 changed files with 2 additions and 2 deletions

View File

@ -49,4 +49,4 @@ def test_nucypher_deploy_help_message(click_runner):
help_args = ('--help', ) help_args = ('--help', )
result = click_runner.invoke(deploy, help_args, catch_exceptions=False) result = click_runner.invoke(deploy, help_args, catch_exceptions=False)
assert result.exit_code == 0 assert result.exit_code == 0
assert 'deploy [OPTIONS] ACTION' in result.output, 'Missing or invalid help text was produced.' assert 'deploy [OPTIONS] COMMAND [ARGS]' in result.output, 'Missing or invalid help text was produced.'

View File

@ -259,7 +259,7 @@ def test_corrupted_configuration(click_runner,
# Attempt destruction with invalid configuration (missing registry) # Attempt destruction with invalid configuration (missing registry)
ursula_file_location = os.path.join(custom_filepath, default_filename) ursula_file_location = os.path.join(custom_filepath, default_filename)
destruction_args = ('ursula', '--debug', 'destroy', '--config-file', ursula_file_location) destruction_args = ('ursula', 'destroy', '--debug', '--config-file', ursula_file_location)
result = click_runner.invoke(nucypher_cli, destruction_args, input='Y\n', catch_exceptions=False, env=envvars) result = click_runner.invoke(nucypher_cli, destruction_args, input='Y\n', catch_exceptions=False, env=envvars)
assert result.exit_code == 0 assert result.exit_code == 0