コード例 #1
0
ファイル: test_table.py プロジェクト: robline/python-docx
 def rows_fixture(self):
     row_count = 2
     tbl = _tbl_bldr(rows=row_count, cols=2).element
     rows = _Rows(tbl)
     return rows, row_count
コード例 #2
0
ファイル: test_table.py プロジェクト: AKimZ/python-docx
 def table_fixture(self, table_):
     rows = _Rows(None, table_)
     table_.table = table_
     return rows, table_
コード例 #3
0
 def slice_fixture(self, request):
     row_count, start, end, expected_count = request.param
     tbl = _tbl_bldr(rows=row_count, cols=2).element
     rows = _Rows(tbl, None)
     return rows, start, end, expected_count
コード例 #4
0
 def table_fixture(self, table_):
     rows = _Rows(None, table_)
     table_.table = table_
     return rows, table_
コード例 #5
0
ファイル: test_table.py プロジェクト: yyqyu/python-docx
 def slice_fixture(self, request):
     row_count, start, end, expected_count = request.param
     tbl = _tbl_bldr(rows=row_count, cols=2).element
     rows = _Rows(tbl, None)
     return rows, start, end, expected_count