def yVal_fixture(self, request): cht_numfmt, ser_numfmt, expected_numfmt = request.param expected_xml = xml( 'c:yVal/c:numRef/(c:f"Sheet1!$B$2:$B$1",c:numCache/(c:formatCode' '"%s",c:ptCount{val=0}))' % expected_numfmt) chart_number_format = () if cht_numfmt is None else (cht_numfmt, ) series_number_format = () if ser_numfmt is None else (ser_numfmt, ) chart_data = XyChartData(*chart_number_format) series_data = chart_data.add_series(None, *series_number_format) xml_writer = _XySeriesXmlWriter(series_data) return xml_writer, expected_xml
def yVal_fixture(self, request): cht_numfmt, ser_numfmt, expected_numfmt = request.param expected_xml = xml( 'c:yVal/c:numRef/(c:f"Sheet1!$B$2:$B$1",c:numCache/(c:formatCode' '"%s",c:ptCount{val=0}))' % expected_numfmt ) chart_number_format = () if cht_numfmt is None else (cht_numfmt,) series_number_format = () if ser_numfmt is None else (ser_numfmt,) chart_data = XyChartData(*chart_number_format) series_data = chart_data.add_series(None, *series_number_format) xml_writer = _XySeriesXmlWriter(series_data) return xml_writer, expected_xml