MCPcopy Index your code
hub / github.com/python-openxml/python-docx / insert_fixture

Method insert_fixture

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

Source from the content-addressed store, hash-verified

547
548 @pytest.fixture
549 def insert_fixture(self):
550 parent = (
551 a_parent()
552 .with_nsdecls()
553 .with_child(an_oomChild())
554 .with_child(an_oooChild())
555 .with_child(a_zooChild())
556 ).element
557 zomChild = a_zomChild().with_nsdecls().element
558 expected_xml = (
559 a_parent()
560 .with_nsdecls()
561 .with_child(an_oomChild())
562 .with_child(an_oooChild())
563 .with_child(a_zomChild())
564 .with_child(a_zooChild())
565 ).xml()
566 return parent, zomChild, expected_xml
567
568 @pytest.fixture
569 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.45
xmlMethod · 0.45

Tested by

no test coverage detected