Skip to content

Commit 503622b

Browse files
committed
Remove dupe enum test
1 parent 8cca959 commit 503622b

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

tests/functional/docs/test_help_output.py

-29
Original file line numberDiff line numberDiff line change
@@ -367,35 +367,6 @@ def test_description_from_rst_file(self):
367367
self.assert_contains('aws_access_key_id')
368368

369369

370-
class TestEnumDocsArentDuplicated(BaseAWSHelpOutputTest):
371-
def test_enum_docs_arent_duplicated(self):
372-
# Test for: https://github.com/aws/aws-cli/issues/609
373-
# What's happening is if you have a list param that has
374-
# an enum, we document it as:
375-
# a|b|c|d a|b|c|d
376-
# Except we show all of the possible enum params twice.
377-
# Each enum param should only occur once. The ideal documentation
378-
# should be:
379-
#
380-
# string1 string2
381-
#
382-
# Where each value is one of:
383-
# value1
384-
# value2
385-
self.driver.main(['cloudformation', 'list-stacks', 'help'])
386-
# "CREATE_IN_PROGRESS" is a enum value, and should only
387-
# appear once in the help output.
388-
contents = self.renderer.rendered_contents
389-
self.assertTrue(
390-
contents.count("CREATE_IN_PROGRESS") == 1,
391-
(
392-
"Enum param was only suppose to be appear once in "
393-
"rendered doc output, appeared: %s"
394-
% contents.count("CREATE_IN_PROGRESS")
395-
),
396-
)
397-
398-
399370
class TestParametersCanBeHidden(BaseAWSHelpOutputTest):
400371
def mark_as_undocumented(self, argument_table, **kwargs):
401372
argument_table['starting-sequence-number']._UNDOCUMENTED = True

0 commit comments

Comments
 (0)