test: delete slow, timing-based and redundant tests

This commit is contained in:
imSp4rky
2026-12-05 15:20:05 -07:00
parent 783a2fc185
commit 3a0a74e694
292 changed files with 153 additions and 15174 deletions
-6
View File
@@ -82,12 +82,6 @@ def licensed(cdm: StubCdm, *kids: UUID) -> dict[UUID, str]:
return {k.kid: k.key.hex() for k in cdm.get_keys(session_id, "CONTENT")}
def test_cached_keys_covering_every_kid_need_no_licence() -> None:
cdm = StubCdm(cached=[key(KID_A, KEY_A)])
assert licensed(cdm, KID_A) == {KID_A: KEY_A}
assert cdm.bodies == []
def test_partial_cached_keys_merge_with_the_licence() -> None:
cdm = StubCdm(cached=[key(KID_A, KEY_A)], licence=[key(KID_A, KEY_X), key(KID_B, KEY_B)])
assert licensed(cdm, KID_A, KID_B) == {KID_A: KEY_A, KID_B: KEY_B}