def width_get_fixture(self, request): tc_cxml, expected_width = request.param cell = Cell(element(tc_cxml), None) return cell, expected_width
def width_set_fixture(self, request): tc_cxml, new_value, expected_cxml = request.param cell = Cell(element(tc_cxml), None) expected_xml = xml(expected_cxml) return cell, new_value, expected_xml
def tables_fixture(self, request): cell_cxml, expected_count = request.param cell = Cell(element(cell_cxml), None) return cell, expected_count
def paragraphs_fixture(self): return Cell(element('w:tc/(w:p, w:p)'), None)
def merge_fixture(self, tc_, tc_2_, parent_, merged_tc_): cell, other_cell = Cell(tc_, parent_), Cell(tc_2_, parent_) tc_.merge.return_value = merged_tc_ return cell, other_cell, merged_tc_
def add_table_fixture(self, request): cell = Cell(element('w:tc/w:p'), None) expected_xml = snippet_seq('new-tbl')[1] return cell, expected_xml
def add_paragraph_fixture(self, request): tc_cxml, after_tc_cxml = request.param cell = Cell(element(tc_cxml), None) expected_xml = xml(after_tc_cxml) return cell, expected_xml