(self, request, _Cell_)
| 547 | |
| 548 | @pytest.fixture(params=["a:tr", "a:tr/a:tc", "a:tr/(a:tc, a:tc, a:tc)"]) |
| 549 | def iter_fixture(self, request, _Cell_): |
| 550 | tr_cxml = request.param |
| 551 | tr = element(tr_cxml) |
| 552 | tcs = tr.xpath("//a:tc") |
| 553 | cell_collection = _CellCollection(tr, None) |
| 554 | |
| 555 | expected_cells = [ |
| 556 | instance_mock(request, _Cell, name="cell%d" % idx) for idx in range(len(tcs)) |
| 557 | ] |
| 558 | _Cell_.side_effect = expected_cells |
| 559 | calls = [call(tc, cell_collection) for tc in tcs] |
| 560 | |
| 561 | return cell_collection, _Cell_, calls, expected_cells |
| 562 | |
| 563 | @pytest.fixture(params=[("a:tr", 0), ("a:tr/a:tc", 1), ("a:tr/(a:tc, a:tc)", 2)]) |
| 564 | def len_fixture(self, request): |
nothing calls this directly
no test coverage detected