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

Method setUp

tests/unit/output/test_table_formatter.py:360–370  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

358 maxDiff = None
359
360 def setUp(self):
361 styler = Styler()
362 self.table = MultiTable(
363 initial_section=False,
364 column_separator='|',
365 styler=styler,
366 auto_reformat=False,
367 )
368 self.formatter = TableFormatter(Object(color='off'))
369 self.formatter.table = self.table
370 self.stream = StringIO()
371
372 def assert_data_renders_to(self, data, table):
373 self.formatter('OperationName', data, stream=self.stream)

Callers

nothing calls this directly

Calls 4

StylerClass · 0.90
MultiTableClass · 0.90
TableFormatterClass · 0.90
ObjectClass · 0.85

Tested by

no test coverage detected