refactor(cdm): read a cdm entry for device and DRM system in one module

This commit is contained in:
imSp4rky
2026-11-24 19:25:26 -07:00
parent 2dfed221d5
commit 1be56b15b3
6 changed files with 450 additions and 93 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ def server(monkeypatch, tmp_path):
def test_a_key_entry_replaces_the_whole_server_entry(server):
user = {"cdm": {"example": "own_pr"}}
assert handlers.key_cdm_config(user).cdm == {"OTHER": "x", "example": "own_pr"}
assert handlers.configured_cdm_name("EXAMPLE", "widevine", handlers.key_cdm_config(user)) == "own_pr"
assert handlers.resolve_device_name(user, "widevine", "EXAMPLE") == "own_pr"
assert handlers.key_cdm_config({}) is config