@@ -367,35 +367,6 @@ def test_description_from_rst_file(self):
367
367
self .assert_contains ('aws_access_key_id' )
368
368
369
369
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
-
399
370
class TestParametersCanBeHidden (BaseAWSHelpOutputTest ):
400
371
def mark_as_undocumented (self , argument_table , ** kwargs ):
401
372
argument_table ['starting-sequence-number' ]._UNDOCUMENTED = True
0 commit comments