Test that VideoStreamAv works with a BytesIO input in addition to a path.
(test_video_file: str)
| 21 | |
| 22 | |
| 23 | def test_video_stream_pyav_bytesio(test_video_file: str): |
| 24 | """Test that VideoStreamAv works with a BytesIO input in addition to a path.""" |
| 25 | # Mode must be binary! |
| 26 | with open(test_video_file, mode="rb") as video_file: |
| 27 | stream = VideoStreamAv(path_or_io=video_file, threading_mode=None) |
| 28 | assert stream.is_seekable |
| 29 | stream.seek(50) |
| 30 | for _ in range(10): |
| 31 | assert stream.read() is not False |
nothing calls this directly
no test coverage detected