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

Method insert_fixture

tests/oxml/test_xmlchemy.py:177–194  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175
176 @pytest.fixture
177 def insert_fixture(self):
178 parent = (
179 a_parent()
180 .with_nsdecls()
181 .with_child(an_oooChild())
182 .with_child(a_zomChild())
183 .with_child(a_zooChild())
184 ).element
185 oomChild = an_oomChild().with_nsdecls().element
186 expected_xml = (
187 a_parent()
188 .with_nsdecls()
189 .with_child(an_oomChild())
190 .with_child(an_oooChild())
191 .with_child(a_zomChild())
192 .with_child(a_zooChild())
193 ).xml()
194 return parent, oomChild, expected_xml
195
196 @pytest.fixture
197 def new_fixture(self):

Callers

nothing calls this directly

Calls 8

a_parentFunction · 0.85
an_oooChildFunction · 0.85
a_zomChildFunction · 0.85
a_zooChildFunction · 0.85
an_oomChildFunction · 0.85
with_childMethod · 0.80
with_nsdeclsMethod · 0.80
xmlMethod · 0.45

Tested by

no test coverage detected