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

Method nmp_fixture

tests/test_package.py:95–101  ·  view source on GitHub ↗
(self, request, iter_parts_)

Source from the content-addressed store, hash-verified

93
94 @pytest.fixture(params=[((3, 4, 2), 1), ((4, 2, 1), 3), ((2, 3, 1), 4)])
95 def nmp_fixture(self, request, iter_parts_):
96 idxs, idx = request.param
97 package = Package(None)
98 package.iter_parts.return_value = self.i_media_parts(request, idxs)
99 ext = "foo"
100 expected_value = "/ppt/media/media%d.%s" % (idx, ext)
101 return package, ext, expected_value
102
103 # fixture components ---------------------------------------------
104

Callers

nothing calls this directly

Calls 2

i_media_partsMethod · 0.95
PackageClass · 0.90

Tested by

no test coverage detected