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

Method xml_fixture

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

Source from the content-addressed store, hash-verified

272 ]
273 )
274 def xml_fixture(self, request):
275 member, cat_count, ser_count, cat_type, snippet_name = request.param
276 chart_type = getattr(XL_CHART_TYPE, member)
277 chart_data = make_category_chart_data(cat_count, cat_type, ser_count)
278 xml_writer = _LineChartXmlWriter(chart_type, chart_data)
279 expected_xml = snippet_text(snippet_name)
280 return xml_writer, expected_xml
281
282
283class Describe_PieChartXmlWriter(object):

Callers

nothing calls this directly

Calls 3

_LineChartXmlWriterClass · 0.90
make_category_chart_dataFunction · 0.85
snippet_textFunction · 0.85

Tested by

no test coverage detected