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

Method from_stream_fixture

tests/parts/test_image.py:209–214  ·  view source on GitHub ↗
(self, from_blob_, image_)

Source from the content-addressed store, hash-verified

207
208 @pytest.fixture
209 def from_stream_fixture(self, from_blob_, image_):
210 with open(test_image_path, "rb") as f:
211 blob = f.read()
212 image_file = io.BytesIO(blob)
213 from_blob_.return_value = image_
214 return image_file, blob, image_
215
216 @pytest.fixture
217 def pil_fixture(self):

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected