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

Method test_breadcrumbs_html

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

Source from the content-addressed store, hash-verified

209 self.assertEqual(help_cmd.doc.getvalue().decode('utf-8'), '')
210
211 def test_breadcrumbs_html(self):
212 help_cmd = ServiceHelpCommand(
213 self.session,
214 self.obj,
215 self.command_table,
216 self.arg_table,
217 self.name,
218 self.event_class,
219 )
220 help_cmd.doc.target = 'html'
221 doc_handler = CLIDocumentEventHandler(help_cmd)
222 doc_handler.doc_breadcrumbs(help_cmd)
223 self.assertEqual(
224 help_cmd.doc.getvalue().decode('utf-8'), '[ :ref:`aws <cli:aws>` ]\n\n'
225 )
226
227 def test_breadcrumbs_service_command_html(self):
228 help_cmd = ServiceHelpCommand(

Callers

nothing calls this directly

Calls 5

doc_breadcrumbsMethod · 0.95
ServiceHelpCommandClass · 0.90
decodeMethod · 0.80
getvalueMethod · 0.45

Tested by

no test coverage detected