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
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
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
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_
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
def data_label(self): """ The |DataLabel| object representing the label on this data point. """ return DataLabel(self._ser, self._idx)