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
@@ -2,7 +2,6 @@ import textwrap
import pytest
from unshackle.core.constants import SPACED_AUDIO_CODECS
from unshackle.core.manifests.hls import HLS
from unshackle.core.tracks.audio import Audio
@@ -36,11 +35,6 @@ def test_dts_hd_and_mpeg_h_sample_entries_map(mime: str, codec: Audio.Codec) ->
assert Audio.Codec.from_mime(mime) == codec
def test_unknown_mime_still_raises() -> None:
with pytest.raises(ValueError):
Audio.Codec.from_mime("dtsz")
@pytest.mark.parametrize(
("uri", "expected"),
[
@@ -80,12 +74,6 @@ def test_select_audio_codec_holds_a_single_declaration() -> None:
assert HLS.select_audio_codec(None, None) is None
def test_spaced_codec_constants_name_real_codecs() -> None:
"""The constant holds bare strings, so a rename must not silently stop matching."""
for value in SPACED_AUDIO_CODECS:
assert value in {c.value for c in Audio.Codec}, f"{value} is not an Audio.Codec value"
def test_a_short_ladder_rung_cannot_hide_a_group_codec() -> None:
"""
One GROUP-ID is reached from every variant that references it, and a low rung may