MCPcopy Create free account
hub / github.com/scanny/python-pptx / split_fixture

Method split_fixture

tests/test_table.py:479–484  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

477 ]
478 )
479 def split_fixture(self, request):
480 tbl_cxml, origin_tc_idx, range_tc_idxs = request.param
481 tcs = element(tbl_cxml).xpath("//a:tc")
482 origin_tc = tcs[origin_tc_idx]
483 range_tcs = tuple(tcs[idx] for idx in range_tc_idxs)
484 return origin_tc, range_tcs
485
486 @pytest.fixture(params=[("a:tc", 1), ("a:tc{rowSpan=2}", 1), ("a:tc{gridSpan=24}", 24)])
487 def width_fixture(self, request):

Callers

nothing calls this directly

Calls 2

elementFunction · 0.85
xpathMethod · 0.45

Tested by

no test coverage detected