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

Method it_can_add_a_tab

tests/text/test_run.py:292–297  ·  view source on GitHub ↗
(self, r_cxml: str, expected_cxml: str, paragraph_: Mock)

Source from the content-addressed store, hash-verified

290 ("r_cxml", "expected_cxml"), [('w:r/w:t"foo"', 'w:r/(w:t"foo", w:tab)')]
291 )
292 def it_can_add_a_tab(self, r_cxml: str, expected_cxml: str, paragraph_: Mock):
293 run = Run(cast(CT_R, element(r_cxml)), paragraph_)
294
295 run.add_tab()
296
297 assert run._r.xml == xml(expected_cxml)
298
299 def it_can_add_a_picture(
300 self,

Callers

nothing calls this directly

Calls 4

add_tabMethod · 0.95
RunClass · 0.90
elementFunction · 0.85
xmlFunction · 0.85

Tested by

no test coverage detected