feat(drm)!: load DRM systems beyond the built-ins from plugins in directories.plugins

This commit is contained in:
imSp4rky
2026-12-03 15:51:42 -07:00
parent f8a248a29e
commit e9adc50594
65 changed files with 1651 additions and 2526 deletions
+2
View File
@@ -329,9 +329,11 @@ async def test_services_load_errors_go_to_the_admin_key_only(
make_app, aiohttp_client, monkeypatch: pytest.MonkeyPatch
) -> None:
from unshackle.core import services as services_module
from unshackle.core.api import routes
from unshackle.core.config import config
monkeypatch.setattr(services_module, "LOAD_ERRORS", ["BAD: failed to import - ImportError: boom"])
monkeypatch.setattr(routes, "service_catalogue", lambda tags: {tag: {"tag": tag} for tag in tags})
monkeypatch.setattr(config, "serve", {"api_secret": "admin", "users": {"user": {"services": ["EXAMPLE"]}}})
client = await aiohttp_client(make_app(remote_only=True))
user = await (await client.get("/api/services", headers={"X-Secret-Key": "user"})).json()