Exemple #1
0
 def width_get_fixture(self, request):
     tc_cxml, expected_width = request.param
     cell = Cell(element(tc_cxml), None)
     return cell, expected_width
Exemple #2
0
 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
Exemple #3
0
 def tables_fixture(self, request):
     cell_cxml, expected_count = request.param
     cell = Cell(element(cell_cxml), None)
     return cell, expected_count
Exemple #4
0
 def paragraphs_fixture(self):
     return Cell(element('w:tc/(w:p, w:p)'), None)
Exemple #5
0
 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_
Exemple #6
0
 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
Exemple #7
0
 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