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

Method dy_fixture

tests/shapes/test_freeform.py:261–272  ·  view source on GitHub ↗
(self, request: FixtureRequest)

Source from the content-addressed store, hash-verified

259 ]
260 )
261 def dy_fixture(self, request: FixtureRequest):
262 start_y, ys, expected_value = request.param
263 drawing_ops = []
264 for y in ys:
265 if y is None:
266 drawing_ops.append(_Close())
267 else:
268 drawing_ops.append(_BaseDrawingOperation(None, None, y))
269
270 builder = FreeformBuilder(None, None, start_y, None, None)
271 builder._drawing_operations.extend(drawing_ops)
272 return builder, expected_value
273
274 @pytest.fixture(params=[(0, 1.0, 0), (4, 10.0, 40), (914400, 914.3, 836035920)])
275 def left_fixture(self, request: FixtureRequest, shape_offset_x_prop_: Mock):

Callers

nothing calls this directly

Calls 4

_CloseClass · 0.90
FreeformBuilderClass · 0.90
appendMethod · 0.45

Tested by

no test coverage detected