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

Method insert_fixture

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

Source from the content-addressed store, hash-verified

384
385 @pytest.fixture
386 def insert_fixture(self):
387 parent = (
388 a_parent()
389 .with_nsdecls()
390 .with_child(an_oooChild())
391 .with_child(a_zomChild())
392 .with_child(a_zooChild())
393 ).element
394 oomChild = an_oomChild().with_nsdecls().element
395 expected_xml = (
396 a_parent()
397 .with_nsdecls()
398 .with_child(an_oomChild())
399 .with_child(an_oooChild())
400 .with_child(a_zomChild())
401 .with_child(a_zooChild())
402 ).xml()
403 return parent, oomChild, expected_xml
404
405 @pytest.fixture
406 def new_fixture(self):

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected