mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-06 07:55:10 +00:00
test: delete slow, timing-based and redundant tests
This commit is contained in:
@@ -37,22 +37,10 @@ def test_a_media_entry_listed_twice_gets_one_track() -> None:
|
||||
assert [str(audio.url) for audio in result.audio] == ["https://example.test/audio/en.m3u8"]
|
||||
|
||||
|
||||
def test_variants_with_the_same_attributes_and_other_links_stay_apart() -> None:
|
||||
result = tracks(variant(5_000_000, "video/uhd.m3u8") + variant(5_000_000, "mirror/uhd.m3u8"))
|
||||
|
||||
assert len(result.videos) == 2
|
||||
|
||||
|
||||
PLAIN = '#EXT-X-STREAM-INF:BANDWIDTH=5000000,RESOLUTION=3840x2160,CODECS="hvc1.2.4.L153.B0",VIDEO-RANGE=PQ'
|
||||
COMPOSITE = PLAIN + ',SUPPLEMENTAL-CODECS="dvh1.08.06/db1p"'
|
||||
|
||||
|
||||
def test_variants_of_one_link_with_another_video_range_stay_apart() -> None:
|
||||
result = tracks(f"{PLAIN}\nuhd.m3u8\n" + f"{PLAIN.replace('=PQ', '=SDR')}\nuhd.m3u8\n")
|
||||
|
||||
assert len(result.videos) == 2
|
||||
|
||||
|
||||
def test_variants_with_other_supplemental_codecs_and_other_links_stay_apart() -> None:
|
||||
result = tracks(f"{PLAIN}\nhdr10.m3u8\n{COMPOSITE}\ndv.m3u8\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user