(tmp_path, video_clip)
| 105 | |
| 106 | |
| 107 | def test_writer_split(tmp_path, video_clip): |
| 108 | with pytest.raises(ValueError): |
| 109 | video_clip.split(1) |
| 110 | n_splits = 3 |
| 111 | clips = video_clip.split(n_splits, dest_folder=str(tmp_path)) |
| 112 | assert len(clips) == n_splits |
| 113 | vid = VideoWriter(clips[0]) |
| 114 | assert pytest.approx(len(vid), abs=1) == len(video_clip) // n_splits |
| 115 | |
| 116 | |
| 117 | def test_writer_crop(tmp_path, video_clip): |
nothing calls this directly
no test coverage detected