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

Method update_fixture

tests/test_action.py:360–367  ·  view source on GitHub ↗
(self, request, part_prop_)

Source from the content-addressed store, hash-verified

358 ]
359 )
360 def update_fixture(self, request, part_prop_):
361 cNvPr_cxml, url, hover, called, expected_cNvPr_cxml = request.param
362 cNvPr = element(cNvPr_cxml)
363 hyperlink = Hyperlink(cNvPr, None, hover)
364 calls = [call(url, RT.HYPERLINK, is_external=True)] if called else []
365 part_prop_.return_value.relate_to.return_value = "rId3"
366 expected_xml = xml(expected_cNvPr_cxml)
367 return hyperlink, url, calls, expected_xml
368
369 # fixture components ---------------------------------------------
370

Callers

nothing calls this directly

Calls 3

HyperlinkClass · 0.90
elementFunction · 0.85
xmlFunction · 0.85

Tested by

no test coverage detected