mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-01 21:45:10 +00:00
fix(remote): end a remote session from before its create to after its DELETE
This commit is contained in:
@@ -18,7 +18,7 @@ from pywidevine.pssh import PSSH
|
||||
|
||||
from tests.core.key_resolver import key_table, resolver
|
||||
from tests.remote.key_source import remote_keys
|
||||
from tests.remote.sessions import session_entry
|
||||
from tests.remote.sessions import hold_session, session_entry
|
||||
from unshackle.core import remote_channel
|
||||
from unshackle.core.api import handlers, server_keys
|
||||
from unshackle.core.cdm.detect import cdm_type_stub
|
||||
@@ -51,7 +51,7 @@ class Remote(SQLite):
|
||||
|
||||
def client(posts: list) -> RemoteService:
|
||||
svc = remote_keys(server_cdm=False)
|
||||
svc._session_id = "sess"
|
||||
hold_session(svc, "sess")
|
||||
svc._track_alias = {"v1": "v9"}
|
||||
svc.client = SimpleNamespace(
|
||||
send=lambda method, endpoint, timeout, background, json: posts.append((method, endpoint, background, json))
|
||||
|
||||
Reference in New Issue
Block a user