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

Method insert_fixture

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

Source from the content-addressed store, hash-verified

294
295 @pytest.fixture
296 def insert_fixture(self):
297 parent = (
298 a_parent().with_nsdecls().with_child(an_oomChild()).with_child(an_oooChild())
299 ).element
300 choice = a_choice().with_nsdecls().element
301 expected_xml = (
302 a_parent()
303 .with_nsdecls()
304 .with_child(a_choice())
305 .with_child(an_oomChild())
306 .with_child(an_oooChild())
307 ).xml()
308 return parent, choice, expected_xml
309
310 @pytest.fixture
311 def new_fixture(self):

Callers

nothing calls this directly

Calls 7

a_parentFunction · 0.85
an_oomChildFunction · 0.85
an_oooChildFunction · 0.85
a_choiceFunction · 0.85
with_childMethod · 0.80
with_nsdeclsMethod · 0.45
xmlMethod · 0.45

Tested by

no test coverage detected