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

Method background_fixture

tests/dml/test_fill.py:147–156  ·  view source on GitHub ↗
(self, request, no_fill_)

Source from the content-addressed store, hash-verified

145 ]
146 )
147 def background_fixture(self, request, no_fill_):
148 cxml, expected_cxml = request.param
149
150 fill = FillFormat.from_fill_parent(element(cxml))
151 # --mock must be after FillFormat call to avoid poss. contructor call
152 _NoFill_ = class_mock(
153 request, "pptx.dml.fill._NoFill", return_value=no_fill_, autospec=True
154 )
155 expected_xml = xml(expected_cxml)
156 return fill, _NoFill_, expected_xml, no_fill_
157
158 @pytest.fixture
159 def fill_type_fixture(self, fill_):

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