mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-03 06:25:10 +00:00
feat(drm): license MonaLisa over --remote on the server and decrypt it in core, with or without bbtsdecrypt
This commit is contained in:
@@ -7,6 +7,7 @@ from pathlib import Path
|
||||
from types import SimpleNamespace
|
||||
from typing import Any
|
||||
|
||||
import click
|
||||
import pytest
|
||||
|
||||
from tests.core.key_resolver import resolver
|
||||
@@ -85,7 +86,7 @@ def test_an_imported_bridged_track_stops_on_a_key_that_does_not_decrypt(
|
||||
path.write_bytes(b"cipher")
|
||||
keys = resolver(None, tag="EXAMPLE")
|
||||
|
||||
with pytest.raises(ValueError, match="does not decrypt track vid") as e:
|
||||
with pytest.raises(click.ClickException, match="does not decrypt track vid") as e:
|
||||
try:
|
||||
keys.decrypt_verified(drm, path, licence, VIDEO_KID, True, SimpleNamespace(id="vid")) # type: ignore[arg-type]
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user