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

Method depth_fixture

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

Source from the content-addressed store, hash-verified

512
513 @pytest.fixture(params=[((), 1), ((1,), 2), ((1, 1, 1), 2), ((2, 2, 2), 3)])
514 def depth_fixture(self, request):
515 depths, expected_value = request.param
516 category = Category(None, None)
517 for depth in depths:
518 category._sub_categories.append(instance_mock(request, Category, depth=depth))
519 return category, expected_value
520
521 @pytest.fixture
522 def depth_raises_fixture(self, request):

Callers

nothing calls this directly

Calls 3

CategoryClass · 0.90
instance_mockFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected