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

Method from_filelike_fixture

tests/image/test_image.py:146–151  ·  view source on GitHub ↗
(self, _from_stream_, image_)

Source from the content-addressed store, hash-verified

144
145 @pytest.fixture
146 def from_filelike_fixture(self, _from_stream_, image_):
147 image_path = test_file("python-icon.png")
148 with open(image_path, "rb") as f:
149 blob = f.read()
150 image_stream = io.BytesIO(blob)
151 return image_stream, _from_stream_, blob, image_
152
153 @pytest.fixture
154 def from_path_fixture(self, _from_stream_, BytesIO_, stream_, image_):

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
test_fileFunction · 0.50

Tested by

no test coverage detected