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

Method setUp

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

Source from the content-addressed store, hash-verified

697
698class TestTopicDocumentEventHandler(TestTopicDocumentEventHandlerBase):
699 def setUp(self):
700 super().setUp()
701 self.name = 'topic-name-1'
702 self.title = 'The first topic title'
703 self.description = 'This is about the first topic'
704 self.category = 'General'
705 self.related_command = 'foo'
706 self.related_topic = 'topic-name-2'
707 self.topic_body = 'Hello World!'
708
709 self.tags_dict = {
710 self.name: {
711 'title': [self.title],
712 'description': [self.description],
713 'category': [self.category],
714 'related topic': [self.related_topic],
715 'related command': [self.related_command],
716 }
717 }
718 with open(self.json_index, 'w') as f:
719 json.dump(self.tags_dict, f, indent=4, sort_keys=True)
720
721 self.cmd = TopicHelpCommand(self.session, self.name)
722 self.doc_handler = TopicDocumentEventHandler(self.cmd)
723
724 def test_breadcrumbs(self):
725 self.doc_handler.doc_breadcrumbs(self.cmd)

Callers

nothing calls this directly

Calls 4

TopicHelpCommandClass · 0.90
setUpMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected