Method
from_stream_fixture
(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
Tested by
no test coverage detected