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
-20
View File
@@ -129,12 +129,6 @@ def test_service_filter_drops_every_ad_period_after_the_first_content_period():
assert stitched(service_tracks().videos[0]) == ["main-1", "main-2", "main-3"]
def test_whole_manifest_restore_keeps_the_service_filter():
video = round_trip(service_tracks()).videos[0]
assert video.data["dash"]["period"].get("id") == "main-1"
assert stitched(video) == ["main-1", "main-2", "main-3"]
def test_one_track_fragment_keeps_every_period_and_the_service_filter():
tracks = service_tracks()
detach_video(tracks)
@@ -144,11 +138,6 @@ def test_one_track_fragment_keeps_every_period_and_the_service_filter():
assert stitched(video) == ["main-1", "main-2", "main-3"]
def test_import_restores_the_service_filter_from_the_export_without_a_fetch(tmp_path):
video = export_and_import(tmp_path, service_tracks()).videos[0]
assert stitched(video) == ["main-1", "main-2", "main-3"]
def test_capture_on_a_remote_client_saves_the_whole_manifest_not_a_fragment():
tracks = service_tracks()
detach_video(tracks)
@@ -180,10 +169,6 @@ def test_a_malformed_snapshot_restores_nothing(snapshot):
assert parse(snapshot, URL, "en") is None
def test_a_saved_manifest_that_does_not_parse_gives_none():
assert parse({"manifests": [{"type": "dash", "url": URL, "data": "bm90IHpsaWI="}]}, URL, "en") is None
def test_the_inflate_budget_covers_every_entry_of_one_restore(monkeypatch, caplog):
saved = capture(service_tracks())
entry = saved["manifests"][0]
@@ -212,11 +197,6 @@ def test_the_fragments_and_the_whole_manifests_share_one_budget(monkeypatch):
assert not client.audio[0].data.get("dash")
def test_compression_level_zero_restores():
video = round_trip(service_tracks(), level=0).videos[0]
assert stitched(video) == ["main-1", "main-2", "main-3"]
def test_an_export_from_a_remote_client_imports_every_track(tmp_path):
tracks = service_tracks()
detach_video(tracks)