MCPcopy Create free account
hub / github.com/aws/aws-cli / test_description

Method test_description

tests/unit/test_clidocs.py:740–754  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

738 self.assertIn(self.title, title_contents)
739
740 def test_description(self):
741 lines = [
742 ':title: ' + self.title,
743 ':description: ' + self.description,
744 ':category:' + self.category,
745 ':related command: ' + self.related_command,
746 ':related topic: ' + self.related_topic,
747 self.topic_body,
748 ]
749 body = '\n'.join(lines)
750 self.file_creator.create_file(self.name + '.rst', body)
751 self.doc_handler.doc_description(self.cmd)
752 contents = self.cmd.doc.getvalue().decode('utf-8')
753 self.assertIn(self.topic_body, contents)
754 self.assertNotIn(':title ' + self.title, contents)
755
756 def test_description_no_tags(self):
757 lines = [self.topic_body]

Callers

nothing calls this directly

Calls 4

decodeMethod · 0.80
create_fileMethod · 0.45
doc_descriptionMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected