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

Method insert_fixture

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

Source from the content-addressed store, hash-verified

325
326 @pytest.fixture
327 def insert_fixture(self):
328 parent = (
329 a_parent()
330 .with_nsdecls()
331 .with_child(an_oomChild())
332 .with_child(an_oooChild())
333 .with_child(a_zooChild())
334 ).element
335 zomChild = a_zomChild().with_nsdecls().element
336 expected_xml = (
337 a_parent()
338 .with_nsdecls()
339 .with_child(an_oomChild())
340 .with_child(an_oooChild())
341 .with_child(a_zomChild())
342 .with_child(a_zooChild())
343 ).xml()
344 return parent, zomChild, expected_xml
345
346 @pytest.fixture
347 def new_fixture(self):

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected