MCPcopy Create free account
hub / github.com/scanny/python-pptx / xml_fixture

Method xml_fixture

tests/chart/test_xmlwriter.py:162–168  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

160 ]
161 )
162 def xml_fixture(self, request):
163 member, cat_count, ser_count, cat_type, snippet_name = request.param
164 chart_type = getattr(XL_CHART_TYPE, member)
165 chart_data = make_category_chart_data(cat_count, cat_type, ser_count)
166 xml_writer = _AreaChartXmlWriter(chart_type, chart_data)
167 expected_xml = snippet_text(snippet_name)
168 return xml_writer, expected_xml
169
170
171class Describe_BarChartXmlWriter(object):

Callers

nothing calls this directly

Calls 3

_AreaChartXmlWriterClass · 0.90
make_category_chart_dataFunction · 0.85
snippet_textFunction · 0.85

Tested by

no test coverage detected