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

Method leaf_fixture

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

Source from the content-addressed store, hash-verified

373
374 @pytest.fixture(params=[((), 0), ((1,), 1), ((1, 2, 3), 6)])
375 def leaf_fixture(self, request):
376 leaf_counts, expected_value = request.param
377 categories = Categories()
378 for leaf_count in leaf_counts:
379 categories._categories.append(instance_mock(request, Category, leaf_count=leaf_count))
380 return categories, expected_value
381
382 @pytest.fixture(
383 params=[

Callers

nothing calls this directly

Calls 3

CategoriesClass · 0.90
instance_mockFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected