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

Method patterned_fixture

tests/dml/test_fill.py:221–230  ·  view source on GitHub ↗
(self, request, patt_fill_)

Source from the content-addressed store, hash-verified

219 ]
220 )
221 def patterned_fixture(self, request, patt_fill_):
222 cxml, expected_cxml = request.param
223
224 fill = FillFormat.from_fill_parent(element(cxml))
225 # --mock must be after FillFormat call to avoid poss. contructor call
226 _PattFill_ = class_mock(
227 request, "pptx.dml.fill._PattFill", return_value=patt_fill_, autospec=True
228 )
229 expected_xml = xml(expected_cxml)
230 return fill, _PattFill_, expected_xml, patt_fill_
231
232 @pytest.fixture(
233 params=[

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