refactor(remote): hold who licenses a remote session as one licensing mode

This commit is contained in:
imSp4rky
2026-11-29 10:16:08 -07:00
parent d4af4c77f4
commit efd8ca65c7
18 changed files with 458 additions and 160 deletions
@@ -12,6 +12,7 @@ from uuid import UUID
import pytest
from tests.remote.key_source import remote_keys
from unshackle.core.remote_protocol import LicensingMode, Licensor
pytestmark = pytest.mark.unit
@@ -87,7 +88,7 @@ def test_response_type_refreshes_the_server_type():
def test_proxy_mode_keeps_the_callers_type():
svc = _service("widevine", {"license": "bGlj"})
svc._server_cdm = False
svc.licensing = LicensingMode(Licensor.CLIENT_DEVICE)
svc.drain_server_logs = lambda: None
track = SimpleNamespace(id="vid", drm=[_PlayReady(), _Widevine()])
@@ -104,7 +105,7 @@ def test_a_refused_relayed_licence_raises_a_click_exception_with_the_server_mess
from unshackle.core.remote_service import RemoteError
svc = _service("widevine", {})
svc._server_cdm = False
svc.licensing = LicensingMode(Licensor.CLIENT_DEVICE)
svc.drain_server_logs = lambda: None
def refuse(endpoint, payload, expect=()):