MCPcopy Index your code
hub / github.com/python-openxml/python-docx / it_can_change_its_direction

Method it_can_change_its_direction

tests/test_table.py:210–215  ·  view source on GitHub ↗
(
        self, tbl_cxml: str, new_value: WD_TABLE_DIRECTION, expected_cxml: str, document_: Mock
    )

Source from the content-addressed store, hash-verified

208 ],
209 )
210 def it_can_change_its_direction(
211 self, tbl_cxml: str, new_value: WD_TABLE_DIRECTION, expected_cxml: str, document_: Mock
212 ):
213 table = Table(cast(CT_Tbl, element(tbl_cxml)), document_)
214 table.table_direction = new_value
215 assert table._element.xml == xml(expected_cxml)
216
217 def it_knows_its_table_style(self, part_prop_: Mock, document_part_: Mock, document_: Mock):
218 part_prop_.return_value = document_part_

Callers

nothing calls this directly

Calls 3

TableClass · 0.90
elementFunction · 0.85
xmlFunction · 0.85

Tested by

no test coverage detected