Exemplo n.º 1
0
    def it_can_change_whether_it_renders_in_reverse_order(
        self, reverse_order_set_fixture
    ):
        xAx, new_value, expected_xml = reverse_order_set_fixture
        axis = _BaseAxis(xAx)

        axis.reverse_order = new_value

        assert axis._element.xml == expected_xml
Exemplo n.º 2
0
 def visible_set_fixture(self, request):
     xAx_cxml, new_value, expected_xAx_cxml = request.param
     axis = _BaseAxis(element(xAx_cxml))
     expected_xml = xml(expected_xAx_cxml)
     return axis, new_value, expected_xml
Exemplo n.º 3
0
 def title_fixture(self, request, AxisTitle_, axis_title_):
     xAx_cxml = request.param
     axis = _BaseAxis(element(xAx_cxml))
     return axis, AxisTitle_, axis_title_
Exemplo n.º 4
0
 def tick_labels_fixture(self, request, TickLabels_, tick_labels_):
     xAx_cxml = request.param
     xAx = element(xAx_cxml)
     axis = _BaseAxis(xAx)
     return axis, tick_labels_, TickLabels_, xAx
Exemplo n.º 5
0
 def minor_gridlines_get_fixture(self, request):
     xAx_cxml, expected_value = request.param
     base_axis = _BaseAxis(element(xAx_cxml))
     return base_axis, expected_value
Exemplo n.º 6
0
 def maj_grdlns_fixture(self, request, MajorGridlines_, major_gridlines_):
     xAx_cxml = request.param
     xAx = element(xAx_cxml)
     axis = _BaseAxis(xAx)
     return axis, MajorGridlines_, xAx, major_gridlines_
Exemplo n.º 7
0
 def it_raises_on_assign_non_bool_to_visible(self):
     axis = _BaseAxis(None)
     with pytest.raises(ValueError):
         axis.visible = 'foobar'
Exemplo n.º 8
0
 def visible_get_fixture(self, request):
     xAx_cxml, expected_bool_value = request.param
     axis = _BaseAxis(element(xAx_cxml))
     return axis, expected_bool_value
Exemplo n.º 9
0
 def format_fixture(self, request, ChartFormat_, format_):
     xAx_cxml = request.param
     axis = _BaseAxis(element(xAx_cxml))
     return axis, ChartFormat_, format_
Exemplo n.º 10
0
 def tick_labels_fixture(self, TickLabels_, tick_labels_):
     xAx = element('c:valAx')
     axis = _BaseAxis(xAx)
     return axis, tick_labels_, TickLabels_, xAx
Exemplo n.º 11
0
 def it_knows_whether_it_renders_in_reverse_order(self, reverse_order_get_fixture):
     xAx, expected_value = reverse_order_get_fixture
     assert _BaseAxis(xAx).reverse_order == expected_value
Exemplo n.º 12
0
 def maj_grdlns_fixture(self, MajorGridlines_, major_gridlines_):
     xAx = element('c:valAx')
     axis = _BaseAxis(xAx)
     return axis, MajorGridlines_, xAx, major_gridlines_
Exemplo n.º 13
0
 def title_fixture(self, request, AxisTitle_, axis_title_):
     xAx_cxml = request.param
     axis = _BaseAxis(element(xAx_cxml))
     return axis, AxisTitle_, axis_title_
Exemplo n.º 14
0
 def tick_labels_fixture(self, request, TickLabels_, tick_labels_):
     xAx_cxml = request.param
     xAx = element(xAx_cxml)
     axis = _BaseAxis(xAx)
     return axis, tick_labels_, TickLabels_, xAx
Exemplo n.º 15
0
 def maj_grdlns_fixture(self, MajorGridlines_, major_gridlines_):
     xAx = element('c:valAx')
     axis = _BaseAxis(xAx)
     return axis, MajorGridlines_, xAx, major_gridlines_
Exemplo n.º 16
0
 def tick_lbl_pos_get_fixture(self, request):
     xAx_cxml, expected_value = request.param
     axis = _BaseAxis(element(xAx_cxml))
     return axis, expected_value
Exemplo n.º 17
0
 def minimum_scale_set_fixture(self, request):
     xAx_cxml, new_value, expected_xAx_cxml = request.param
     axis = _BaseAxis(element(xAx_cxml), None)
     expected_xml = xml(expected_xAx_cxml)
     return axis, new_value, expected_xml
Exemplo n.º 18
0
 def visible_set_fixture(self, request):
     xAx_cxml, new_value, expected_xAx_cxml = request.param
     axis = _BaseAxis(element(xAx_cxml))
     expected_xml = xml(expected_xAx_cxml)
     return axis, new_value, expected_xml
Exemplo n.º 19
0
 def minor_tick_get_fixture(self, request):
     xAx_cxml, expected_value = request.param
     axis = _BaseAxis(element(xAx_cxml), None)
     return axis, expected_value
Exemplo n.º 20
0
 def format_fixture(self, request, ChartFormat_, format_):
     xAx_cxml = request.param
     axis = _BaseAxis(element(xAx_cxml))
     return axis, ChartFormat_, format_
Exemplo n.º 21
0
 def tick_lbl_pos_set_fixture(self, request):
     xAx_cxml, new_value, expected_xAx_cxml = request.param
     axis = _BaseAxis(element(xAx_cxml), None)
     expected_xml = xml(expected_xAx_cxml)
     return axis, new_value, expected_xml
Exemplo n.º 22
0
 def minimum_scale_get_fixture(self, request):
     xAx_cxml, expected_value = request.param
     axis = _BaseAxis(element(xAx_cxml))
     return axis, expected_value
Exemplo n.º 23
0
 def minimum_scale_get_fixture(self, request):
     xAx_cxml, expected_value = request.param
     axis = _BaseAxis(element(xAx_cxml))
     return axis, expected_value
Exemplo n.º 24
0
 def minor_gridlines_set_fixture(self, request):
     xAx_cxml, new_value, expected_xAx_cxml = request.param
     base_axis = _BaseAxis(element(xAx_cxml))
     expected_xml = xml(expected_xAx_cxml)
     return base_axis, new_value, expected_xml
Exemplo n.º 25
0
 def minor_gridlines_get_fixture(self, request):
     xAx_cxml, expected_value = request.param
     base_axis = _BaseAxis(element(xAx_cxml))
     return base_axis, expected_value
Exemplo n.º 26
0
 def tick_lbl_pos_get_fixture(self, request):
     xAx_cxml, expected_value = request.param
     axis = _BaseAxis(element(xAx_cxml))
     return axis, expected_value
Exemplo n.º 27
0
 def minor_gridlines_set_fixture(self, request):
     xAx_cxml, new_value, expected_xAx_cxml = request.param
     base_axis = _BaseAxis(element(xAx_cxml))
     expected_xml = xml(expected_xAx_cxml)
     return base_axis, new_value, expected_xml
Exemplo n.º 28
0
 def visible_get_fixture(self, request):
     xAx_cxml, expected_bool_value = request.param
     axis = _BaseAxis(element(xAx_cxml))
     return axis, expected_bool_value
Exemplo n.º 29
0
 def tick_labels_fixture(self, TickLabels_, tick_labels_):
     xAx = element('c:valAx')
     axis = _BaseAxis(xAx)
     return axis, tick_labels_, TickLabels_, xAx
Exemplo n.º 30
0
 def it_raises_on_assign_non_bool_to_visible(self):
     axis = _BaseAxis(None)
     with pytest.raises(ValueError):
         axis.visible = 'foobar'
Exemplo n.º 31
0
 def maj_grdlns_fixture(self, request, MajorGridlines_, major_gridlines_):
     xAx_cxml = request.param
     xAx = element(xAx_cxml)
     axis = _BaseAxis(xAx)
     return axis, MajorGridlines_, xAx, major_gridlines_