(self, document_: Mock)
| 32 | """Unit-test suite for `docx.table._Rows` objects.""" |
| 33 | |
| 34 | def it_can_add_a_row(self, document_: Mock): |
| 35 | snippets = snippet_seq("add-row-col") |
| 36 | tbl = cast(CT_Tbl, parse_xml(snippets[0])) |
| 37 | table = Table(tbl, document_) |
| 38 | |
| 39 | row = table.add_row() |
| 40 | |
| 41 | assert table._tbl.xml == snippets[1] |
| 42 | assert isinstance(row, _Row) |
| 43 | assert row._tr is table._tbl.tr_lst[-1] |
| 44 | assert row._parent is table |
| 45 | |
| 46 | def it_can_add_a_column(self, document_: Mock): |
| 47 | snippets = snippet_seq("add-row-col") |
nothing calls this directly
no test coverage detected