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

Method insert_fixture

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

Source from the content-addressed store, hash-verified

409
410 @pytest.fixture
411 def insert_fixture(self):
412 parent = (
413 a_parent()
414 .with_nsdecls()
415 .with_child(an_oomChild())
416 .with_child(an_oooChild())
417 .with_child(a_zomChild())
418 ).element
419 zooChild = a_zooChild().with_nsdecls().element
420 expected_xml = (
421 a_parent()
422 .with_nsdecls()
423 .with_child(an_oomChild())
424 .with_child(an_oooChild())
425 .with_child(a_zomChild())
426 .with_child(a_zooChild())
427 ).xml()
428 return parent, zooChild, expected_xml
429
430 @pytest.fixture(params=[True, False])
431 def remove_fixture(self, request):

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected