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
-12
View File
@@ -6,7 +6,6 @@ from unshackle.core.api import licence_cap
from unshackle.core.api.errors import APIError
from unshackle.core.remote_protocol import APIErrorCode
from unshackle.core.tracks import Audio, Video
from unshackle.core.tracks.tracks import at_resolution
pytestmark = pytest.mark.unit
@@ -71,10 +70,6 @@ def test_a_track_above_the_cap_gets_no_live_licence(track, refused):
assert (licence_cap.track_refusal(1080, track) is not None) is refused
def test_no_cap_refuses_no_track():
assert licence_cap.track_refusal(None, video(4320)) is None
def test_the_track_refusal_gives_the_client_the_cap():
refusal = licence_cap.track_refusal(1080, video(2160))
assert refusal.error_code is APIErrorCode.SERVER_CDM_CAPPED
@@ -82,13 +77,6 @@ def test_the_track_refusal_gives_the_client_the_cap():
assert "2160p track" in refusal.message
@pytest.mark.parametrize("size", [(1088, 2048), (1188, 2112), (800, 1920), (1080, 2560), (1080, 1920), (None, 1920)])
def test_a_track_that_the_cap_quality_selects_gets_a_live_licence(size):
track = video(*size)
assert at_resolution(track, 1080)
assert licence_cap.track_refusal(1080, track) is None
@pytest.mark.parametrize(
("cap", "quality", "has_device", "server_cdm"),
[