refactor(api): build list, search and session services through one launch_served

This commit is contained in:
imSp4rky
2026-11-29 14:28:47 -07:00
parent e41760c2b3
commit de2ffcb9bd
22 changed files with 444 additions and 280 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ from typing import Any
import pytest
from tests.remote.sessions import stub_service_build
from unshackle.core.api import session_store as store_mod
from unshackle.core.api.handlers import session_tracks_handler
from unshackle.core.api.server_keys import find_title_for_track
@@ -168,7 +169,7 @@ def test_the_create_event_carries_the_session_as_created(monkeypatch: pytest.Mon
monkeypatch.setattr(handlers, "server_account_for", lambda *args: False)
monkeypatch.setattr(handlers, "choose_session_cdm", lambda *args: (True, 1080))
monkeypatch.setattr(handlers.Services, "load", lambda service: Service)
monkeypatch.setattr(handlers, "create_service_instance", lambda *a, **k: (Service(), None, None))
stub_service_build(monkeypatch, Service)
async def run() -> list:
mark = bus.seq