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

Method setter_fixture

tests/oxml/test_xmlchemy.py:232–239  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

230
231 @pytest.fixture(params=[36, None])
232 def setter_fixture(self, request):
233 value = request.param
234 parent = a_parent().with_nsdecls().with_optAttr("42").element
235 if value is None:
236 expected_xml = a_parent().with_nsdecls().xml()
237 else:
238 expected_xml = a_parent().with_nsdecls().with_optAttr(value).xml()
239 return parent, value, expected_xml
240
241
242class DescribeRequiredAttribute(object):

Callers

nothing calls this directly

Calls 3

a_parentFunction · 0.85
with_nsdeclsMethod · 0.80
xmlMethod · 0.45

Tested by

no test coverage detected