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

Method iter_fixture

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

Source from the content-addressed store, hash-verified

787
788 @pytest.fixture(params=["a:tbl", "a:tbl/a:tr", "a:tbl/(a:tr, a:tr, a:tr)"])
789 def iter_fixture(self, request):
790 tbl_cxml = request.param
791 tbl = element(tbl_cxml)
792 rows = _RowCollection(tbl, None)
793 expected_row_lst = tbl.findall(qn("a:tr"))
794 return rows, expected_row_lst
795
796 @pytest.fixture(params=[("a:tbl", 0), ("a:tbl/a:tr", 1), ("a:tbl/(a:tr, a:tr)", 2)])
797 def len_fixture(self, request):

Callers

nothing calls this directly

Calls 3

_RowCollectionClass · 0.90
qnFunction · 0.90
elementFunction · 0.85

Tested by

no test coverage detected