From ae6ac4b2aabab2b18bc2341994b2d6bae865758f Mon Sep 17 00:00:00 2001 From: derekpierre Date: Tue, 15 Oct 2019 17:26:08 -0400 Subject: [PATCH] Fixed broken CLI tests based on refactor --- tests/cli/test_help.py | 2 +- tests/cli/test_mixed_configurations.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cli/test_help.py b/tests/cli/test_help.py index 21a621f6f..bfd6c6fc3 100644 --- a/tests/cli/test_help.py +++ b/tests/cli/test_help.py @@ -49,4 +49,4 @@ def test_nucypher_deploy_help_message(click_runner): help_args = ('--help', ) result = click_runner.invoke(deploy, help_args, catch_exceptions=False) 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.' diff --git a/tests/cli/test_mixed_configurations.py b/tests/cli/test_mixed_configurations.py index 99ad10b4d..e1cfe2760 100644 --- a/tests/cli/test_mixed_configurations.py +++ b/tests/cli/test_mixed_configurations.py @@ -259,7 +259,7 @@ def test_corrupted_configuration(click_runner, # Attempt destruction with invalid configuration (missing registry) 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) assert result.exit_code == 0