forked from kenzuya/unshackle
test(dash): set ffprobe in the init-segment pssh test so it passes without the binary
This commit is contained in:
@@ -12,11 +12,13 @@ from __future__ import annotations
|
||||
|
||||
import base64
|
||||
from functools import partial
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
from uuid import UUID
|
||||
|
||||
from pywidevine.pssh import PSSH
|
||||
|
||||
from unshackle.core import binaries
|
||||
from unshackle.core.constants import DOWNLOAD_LICENCE_ONLY
|
||||
from unshackle.core.drm import Widevine
|
||||
from unshackle.core.drm.clearkey_cenc import ClearKeyCENC
|
||||
@@ -141,6 +143,7 @@ def test_download_track_licenses_a_common_pssh_track_as_clearkey(tmp_path, monke
|
||||
def test_download_track_prefers_the_init_segment_pssh_over_a_common_pssh(tmp_path, monkeypatch) -> None:
|
||||
track = DASH.from_text(COMMON_MPD, MANIFEST_URL).to_tracks().videos[0]
|
||||
monkeypatch.setattr(track, "get_key_id", lambda *args, **kwargs: KID)
|
||||
monkeypatch.setattr(binaries, "FFProbe", Path("ffprobe"))
|
||||
with_init(monkeypatch, base64.b64decode(PSSH.new(system_id=PSSH.SystemId.Widevine, key_ids=[KID]).dumps()))
|
||||
|
||||
licence = licence_only(track, tmp_path)
|
||||
|
||||
Reference in New Issue
Block a user