From 79cc16d29022eab9c65e3158fe68fe9a8044a432 Mon Sep 17 00:00:00 2001 From: imSp4rky Date: Sat, 28 Nov 2026 18:05:48 -0700 Subject: [PATCH] test(dash): set ffprobe in the init-segment pssh test so it passes without the binary --- tests/core/test_dash_clearkey_licensing.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/core/test_dash_clearkey_licensing.py b/tests/core/test_dash_clearkey_licensing.py index 1489740f..469bd666 100644 --- a/tests/core/test_dash_clearkey_licensing.py +++ b/tests/core/test_dash_clearkey_licensing.py @@ -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)