Beispiel #1
0
 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
Beispiel #2
0
 def subclass_fixture(self):
     return BarSeries(None)
Beispiel #3
0
 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
Beispiel #4
0
 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
Beispiel #5
0
 def line_width_get_fixture(self, request):
     ser_cxml, expected_width = request.param
     bar_series = BarSeries(element(ser_cxml))
     return bar_series, expected_width
Beispiel #6
0
 def line_fixture(self, LineFormat_, line_):
     bar_series = BarSeries(element('c:ser'))
     return bar_series, LineFormat_, line_
Beispiel #7
0
 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_