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

Method background_fixture

tests/test_slide.py:69–74  ·  view source on GitHub ↗
(self, _Background_, background_)

Source from the content-addressed store, hash-verified

67
68 @pytest.fixture
69 def background_fixture(self, _Background_, background_):
70 sld = element("p:sld/p:cSld")
71 slide = _BaseSlide(sld, None)
72 cSld = sld.xpath("//p:cSld")[0]
73 _Background_.return_value = background_
74 return slide, _Background_, cSld, background_
75
76 @pytest.fixture(params=[("p:sld/p:cSld", ""), ("p:sld/p:cSld{name=Foobar}", "Foobar")])
77 def name_get_fixture(self, request):

Callers

nothing calls this directly

Calls 3

_BaseSlideClass · 0.90
elementFunction · 0.85
xpathMethod · 0.45

Tested by

no test coverage detected