mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-25 10:25:09 +00:00
test(dash): stub the key probe in the audio trim download test
This commit is contained in:
@@ -376,8 +376,11 @@ def test_trim_overlaps_drops_the_audio_past_the_next_period(tmp_path: Path) -> N
|
|||||||
assert trim_overlaps(path, {JOIN}) == 0
|
assert trim_overlaps(path, {JOIN}) == 0
|
||||||
|
|
||||||
|
|
||||||
def test_download_track_trims_audio_that_overlaps_the_next_period(server: ThreadingHTTPServer, tmp_path: Path) -> None:
|
def test_download_track_trims_audio_that_overlaps_the_next_period(
|
||||||
|
server: ThreadingHTTPServer, tmp_path: Path, monkeypatch: pytest.MonkeyPatch
|
||||||
|
) -> None:
|
||||||
# period 0 is 2 s in the manifest but its audio runs to 2.5 s; period 1 restarts at 0
|
# period 0 is 2 s in the manifest but its audio runs to 2.5 s; period 1 restarts at 0
|
||||||
|
monkeypatch.setattr(Track, "get_key_id", lambda self, *args, **kwargs: None)
|
||||||
for path, data in {
|
for path, data in {
|
||||||
"/a0/init.mp4": init_segment(1000),
|
"/a0/init.mp4": init_segment(1000),
|
||||||
"/a0/1.m4s": audio_fragment(0, 3, 500),
|
"/a0/1.m4s": audio_fragment(0, 3, 500),
|
||||||
|
|||||||
Reference in New Issue
Block a user