From 3eee9dc5b481ccf56008068499c8eb8a55f3f42f Mon Sep 17 00:00:00 2001 From: z-bowen Date: Mon, 20 Aug 2018 15:02:11 +0200 Subject: [PATCH] Problem: No test covering the parser for `upsert-validator approve` Solution: Expended a test to cover the new parser --- tests/commands/test_commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/commands/test_commands.py b/tests/commands/test_commands.py index 523f528d..48b92f1c 100644 --- a/tests/commands/test_commands.py +++ b/tests/commands/test_commands.py @@ -24,6 +24,8 @@ def test_make_sure_we_dont_remove_any_command(): assert parser.parse_args(['start']).command assert parser.parse_args(['upsert-validator', 'new', 'TEMP_PUB_KEYPAIR', '10', 'TEMP_NODE_ID', '--private-key', 'TEMP_PATH_TO_PRIVATE_KEY']).command + assert parser.parse_args(['upsert-validator', 'approve', 'ELECTION_ID', '--private-key', + 'TEMP_PATH_TO+PRIVATE_KEY']).command @pytest.mark.tendermint