def invert_if_negative_set_fixture(self, request): ser_cxml, new_value, expected_ser_cxml = request.param bar_series = BarSeries(element(ser_cxml)) expected_xml = xml(expected_ser_cxml) return bar_series, new_value, expected_xml
def subclass_fixture(self): return BarSeries(None)
def invert_if_negative_get_fixture(self, request): ser_cxml, expected_value = request.param bar_series = BarSeries(element(ser_cxml)) return bar_series, expected_value
def line_width_set_fixture(self): ser_cxml = 'c:ser{a:foo=bar}/c:order' bar_series = BarSeries(element(ser_cxml)) width = 12700 # 1 point expected_xml = xml('c:ser{a:foo=bar}/(c:order,c:spPr/a:ln{w=12700})') return bar_series, width, expected_xml
def line_width_get_fixture(self, request): ser_cxml, expected_width = request.param bar_series = BarSeries(element(ser_cxml)) return bar_series, expected_width
def line_fixture(self, LineFormat_, line_): bar_series = BarSeries(element('c:ser')) return bar_series, LineFormat_, line_
def fill_fixture(self, FillFormat_, fill_): ser = element('c:ser/c:spPr') spPr = ser.spPr bar_series = BarSeries(ser) return bar_series, FillFormat_, spPr, fill_