Skip to content

Commit

Permalink
Add another test and tweak test name.
Browse files Browse the repository at this point in the history
  • Loading branch information
desilinguist committed Apr 27, 2020
1 parent 14e3ef0 commit 52c4457
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,9 +963,9 @@ def test_generate_subparser_with_subgroups_and_flag(self):
subgroups=True)
eq_(parsed_namespace, expected_namespace)

def test_generate_subparser_with_subgroups_short_and_flag(self):
def test_generate_subparser_with_subgroups_option_and_short_flag(self):
"""
test generate subparser with short subgroups option and flag
test generate subparser with subgroups option and short flag
"""
parser = setup_rsmcmd_parser('test', uses_subgroups=True)
parsed_namespace = parser.parse_args('generate -g'.split())
Expand All @@ -975,7 +975,7 @@ def test_generate_subparser_with_subgroups_short_and_flag(self):
subgroups=True)
eq_(parsed_namespace, expected_namespace)

def test_generate_subparser_with_subgroups_but_no_flag(self):
def test_generate_subparser_with_subgroups_option_but_no_flag(self):
"""
test generate subparser with subgroups option but no flag
"""
Expand Down Expand Up @@ -1021,7 +1021,7 @@ def test_generate_subparser_with_only_interactive_flag(self):
quiet=False)
eq_(parsed_namespace, expected_namespace)

def test_generate_subparser_with_only_interactive_flag_short(self):
def test_generate_subparser_with_only_interactive_short_flag(self):
"""
test generate subparser with only the short interactive flag
"""
Expand Down Expand Up @@ -1056,6 +1056,18 @@ def test_generate_subparser_with_subgroups_and_interactive_short_flags(self):
subgroups=True)
eq_(parsed_namespace, expected_namespace)

def test_generate_subparser_with_subgroups_and_interactive_short_flags_together(self):
"""
test generate subparser with short subgroups and interactive flags together
"""
parser = setup_rsmcmd_parser('test', uses_subgroups=True)
parsed_namespace = parser.parse_args('generate -ig'.split())
expected_namespace = argparse.Namespace(subcommand='generate',
quiet=False,
interactive=True,
subgroups=True)
eq_(parsed_namespace, expected_namespace)


class TestBatchGenerateConfiguration:

Expand Down

0 comments on commit 52c4457

Please sign in to comment.