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

Method _snippet_tbl

tests/oxml/test_table.py:370–372  ·  view source on GitHub ↗

A element for snippet at `idx` in 'tbl-cells' snippet file.

(self, idx: int)

Source from the content-addressed store, hash-verified

368 return method_mock(request, CT_Tc, "_span_to_width", autospec=False)
369
370 def _snippet_tbl(self, idx: int) -> CT_Tbl:
371 """A <w:tbl> element for snippet at `idx` in 'tbl-cells' snippet file."""
372 return cast(CT_Tbl, parse_xml(snippet_seq("tbl-cells")[idx]))
373
374 @pytest.fixture
375 def _swallow_next_tc_(self, request: FixtureRequest):

Calls 2

parse_xmlFunction · 0.90
snippet_seqFunction · 0.85

Tested by

no test coverage detected