fix(remote): end a remote session from before its create to after its DELETE

This commit is contained in:
imSp4rky
2026-11-30 13:56:59 -07:00
parent 3634fc5686
commit 34a3820eb8
34 changed files with 1719 additions and 276 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ from types import SimpleNamespace
from typing import Any
from uuid import UUID
from tests.remote.sessions import hold_session
from unshackle.core.remote_protocol import LicensingMode, Licensor
from unshackle.core.remote_service import RemoteService, ServerVault
from unshackle.core.title_source import KeyArrival
@@ -71,7 +72,7 @@ def remote_session(local_cdm: Any, answer: dict) -> RemoteService:
svc = remote_keys(server_cdm_type="playready", local_cdm=local_cdm)
svc._track_alias = {}
svc._title_alias = {}
svc._session_id = "sess"
hold_session(svc, "sess")
svc.log = logging.getLogger("test-remote-session")
posts: list = []
svc.client = SimpleNamespace(post=lambda endpoint, payload, expect=(): posts.append(payload) or answer)