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

Method from_stream_fixture

tests/test_media.py:103–109  ·  view source on GitHub ↗
(self, video_, from_blob_)

Source from the content-addressed store, hash-verified

101
102 @pytest.fixture
103 def from_stream_fixture(self, video_, from_blob_):
104 with open(TEST_VIDEO_PATH, "rb") as f:
105 blob = f.read()
106 movie_stream = io.BytesIO(blob)
107 mime_type = "video/mp4"
108 from_blob_.return_value = video_
109 return movie_stream, mime_type, blob, video_
110
111 @pytest.fixture
112 def sha1_fixture(self):

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected