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
-14
View File
@@ -51,12 +51,6 @@ def test_other_dts_profiles_stay_in_matroska(tmp_path: Path, fourcc: bytes) -> N
assert has_mp4_only_audio_entry(write_mp4(tmp_path / "a.mp4", fourcc)) is False
def test_a_file_with_no_moov_is_not_detected(tmp_path: Path) -> None:
path = tmp_path / "a.mp4"
path.write_bytes(box(b"ftyp", b"isom") + box(b"mdat", b"dtsx" * 8))
assert has_mp4_only_audio_entry(path) is False, "a 4CC in mdat is not a sample entry"
def build_tracks(tmp_path: Path, audio_entry: bytes) -> Tracks:
video = Video(id_="v1", url="https://x/v", codec=Video.Codec.AVC, language="en", width=1920, height=1080, fps=24)
audio = Audio(id_="a1", url="https://x/a", codec=Audio.Codec.DTSX, language="en", bitrate=448000)
@@ -253,14 +247,6 @@ def test_a_changed_stsd_is_never_dropped(tmp_path: Path) -> None:
assert not dst.exists(), "the caller must keep the original when the format changes"
def test_a_single_init_is_left_alone(tmp_path: Path) -> None:
src = tmp_path / "a.mp4"
src.write_bytes(init_pair(b"dtsx") + fragment(b"one"))
dst = tmp_path / "clean.mp4"
assert strip_duplicate_init_boxes(src, dst) == 0
assert not dst.exists()
def test_an_unreadable_input_aborts_instead_of_shipping_a_placeholder(
tmp_path: Path, monkeypatch: pytest.MonkeyPatch
) -> None: