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

Method solid_fixture

tests/dml/test_fill.py:243–252  ·  view source on GitHub ↗
(self, request, solid_fill_)

Source from the content-addressed store, hash-verified

241 ]
242 )
243 def solid_fixture(self, request, solid_fill_):
244 cxml, expected_cxml = request.param
245
246 fill = FillFormat.from_fill_parent(element(cxml))
247 # --mock must be after FillFormat call to avoid poss. contructor call
248 _SolidFill_ = class_mock(
249 request, "pptx.dml.fill._SolidFill", return_value=solid_fill_, autospec=True
250 )
251 expected_xml = xml(expected_cxml)
252 return fill, _SolidFill_, expected_xml, solid_fill_
253
254 # fixture components ---------------------------------------------
255

Callers

nothing calls this directly

Calls 4

elementFunction · 0.85
class_mockFunction · 0.85
xmlFunction · 0.85
from_fill_parentMethod · 0.80

Tested by

no test coverage detected