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

Method depth_fixture

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

Source from the content-addressed store, hash-verified

345
346 @pytest.fixture(params=[((), 0), ((1,), 1), ((3,), 3), ((1, 1, 1), 1), ((3, 3, 3), 3)])
347 def depth_fixture(self, request):
348 depths, expected_value = request.param
349 categories = Categories()
350 for depth in depths:
351 categories._categories.append(instance_mock(request, Category, depth=depth))
352 return categories, expected_value
353
354 @pytest.fixture
355 def depth_raises_fixture(self, request):

Callers

nothing calls this directly

Calls 3

CategoriesClass · 0.90
instance_mockFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected