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

Method from_path_fixture

tests/image/test_image.py:154–159  ·  view source on GitHub ↗
(self, _from_stream_, BytesIO_, stream_, image_)

Source from the content-addressed store, hash-verified

152
153 @pytest.fixture
154 def from_path_fixture(self, _from_stream_, BytesIO_, stream_, image_):
155 filename = "python-icon.png"
156 image_path = test_file(filename)
157 with open(image_path, "rb") as f:
158 blob = f.read()
159 return image_path, _from_stream_, stream_, blob, filename, image_
160
161 @pytest.fixture(params=["foobar.png", None])
162 def from_stream_fixture(

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
test_fileFunction · 0.50

Tested by

no test coverage detected