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

Method dx_fixture

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

Source from the content-addressed store, hash-verified

239 ]
240 )
241 def dx_fixture(self, request: FixtureRequest):
242 start_x, xs, expected_value = request.param
243 drawing_ops = []
244 for x in xs:
245 if x is None:
246 drawing_ops.append(_Close())
247 else:
248 drawing_ops.append(_BaseDrawingOperation(None, x, None))
249
250 builder = FreeformBuilder(None, start_x, None, None, None)
251 builder._drawing_operations.extend(drawing_ops)
252 return builder, expected_value
253
254 @pytest.fixture(
255 params=[

Callers

nothing calls this directly

Calls 4

_CloseClass · 0.90
FreeformBuilderClass · 0.90
appendMethod · 0.45

Tested by

no test coverage detected