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

Method leaf_fixture

tests/chart/test_data.py:569–574  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

567
568 @pytest.fixture(params=[((), 1), ((1,), 1), ((1, 2, 3), 6)])
569 def leaf_fixture(self, request):
570 leaf_counts, expected_value = request.param
571 category = Category(None, None)
572 for leaf_count in leaf_counts:
573 category._sub_categories.append(instance_mock(request, Category, leaf_count=leaf_count))
574 return category, expected_value
575
576 @pytest.fixture(
577 params=[

Callers

nothing calls this directly

Calls 3

CategoryClass · 0.90
instance_mockFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected