Esempio n. 1
0
 def position_set_fixture(self, request):
     ser_cxml, value, expected_cxml = request.param
     data_label = DataLabel(element(ser_cxml), 42)
     new_value = (None if value is None else getattr(
         XL_LABEL_POSITION, value))
     expected_xml = xml(expected_cxml)
     return data_label, new_value, expected_xml
Esempio n. 2
0
 def has_tf_get_fixture(self, request):
     ser_cxml, expected_value = request.param
     data_label = DataLabel(element(ser_cxml), 42)
     return data_label, expected_value
Esempio n. 3
0
 def font_fixture(self, request):
     ser_cxml, expected_cxml = request.param
     data_label = DataLabel(element(ser_cxml), 9)
     expected_xml = xml(expected_cxml)
     return data_label, expected_xml
Esempio n. 4
0
 def text_frame_fixture(self, request, _get_or_add_rich_, TextFrame_):
     data_label = DataLabel(None, None)
     rich_ = _get_or_add_rich_.return_value
     text_frame_ = TextFrame_.return_value
     return data_label, TextFrame_, rich_, text_frame_
Esempio n. 5
0
 def has_tf_set_fixture(self, request):
     ser_cxml, value, expected_cxml = request.param
     data_label = DataLabel(element(ser_cxml), 42)
     expected_xml = xml(expected_cxml)
     return data_label, value, expected_xml
Esempio n. 6
0
 def data_label(self):
     """
     The |DataLabel| object representing the label on this data point.
     """
     return DataLabel(self._ser, self._idx)