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

Method insert_fixture

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

Source from the content-addressed store, hash-verified

631
632 @pytest.fixture
633 def insert_fixture(self):
634 parent = (
635 a_parent()
636 .with_nsdecls()
637 .with_child(an_oomChild())
638 .with_child(an_oooChild())
639 .with_child(a_zomChild())
640 ).element
641 zooChild = a_zooChild().with_nsdecls().element
642 expected_xml = (
643 a_parent()
644 .with_nsdecls()
645 .with_child(an_oomChild())
646 .with_child(an_oooChild())
647 .with_child(a_zomChild())
648 .with_child(a_zooChild())
649 ).xml()
650 return parent, zooChild, expected_xml
651
652 @pytest.fixture(params=[True, False])
653 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.45
xmlMethod · 0.45

Tested by

no test coverage detected