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

Method index_fixture

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

Source from the content-addressed store, hash-verified

360
361 @pytest.fixture
362 def index_fixture(self, request):
363 categories = Categories()
364 categories_ = [
365 instance_mock(request, Category, leaf_count=3),
366 instance_mock(request, Category, leaf_count=6),
367 instance_mock(request, Category, leaf_count=9),
368 ]
369 category_ = categories_[1]
370 expected_value = 3
371 categories._categories = categories_
372 return categories, category_, expected_value
373
374 @pytest.fixture(params=[((), 0), ((1,), 1), ((1, 2, 3), 6)])
375 def leaf_fixture(self, request):

Callers

nothing calls this directly

Calls 2

CategoriesClass · 0.90
instance_mockFunction · 0.85

Tested by

no test coverage detected