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
-19
View File
@@ -54,21 +54,6 @@ def test_layouts_without_heights_are_unchanged(layout: str | None, expected: str
assert named("E-AC-3", layout)["audio_channels"] == expected
@pytest.mark.parametrize(
("fmt", "expected"),
[("E-AC-3", "DDP5.1"), ("AC-3", "DD5.1"), ("AC-4", "AC4 5.1"), ("AAC", "AAC5.1")],
)
def test_a_name_ending_in_a_digit_is_spaced_from_the_channels(fmt: str, expected: str) -> None:
assert named(fmt, "L R C LFE Ls Rs")["audio_full"] == expected
def test_codec_names_overrides_the_built_in_name(monkeypatch: pytest.MonkeyPatch) -> None:
"""The override is keyed by the name the filename would carry, and AC3 still gets its separator."""
monkeypatch.setattr(config, "codec_names", {"DDP": "EAC3", "DD": "AC3"})
assert named("E-AC-3", "L R C LFE Ls Rs")["audio_full"] == "EAC3 5.1"
assert named("AC-3", "L R C LFE Ls Rs")["audio"] == "AC3"
def test_codec_names_renames_video_and_each_hdr_part(monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setattr(config, "codec_names", {"H.265": "HEVC", "HDR10P": "HDR10+", "DTS-X": "DTSX"})
video = types.SimpleNamespace(
@@ -86,7 +71,3 @@ def test_codec_names_renames_video_and_each_hdr_part(monkeypatch: pytest.MonkeyP
context = movie.build_base_template_context(types.SimpleNamespace(video_tracks=[video], audio_tracks=[]))
assert (context["video"], context["hdr"]) == ("HEVC", "DV.HDR10+")
assert named("DTS-UHD", "L C R LFE Ls Rs")["audio_full"] == "DTSX 5.1", "a renamed DTS-X keeps its separator"
def test_a_missing_audio_format_does_not_break_naming() -> None:
assert named(None, "L R", channel_s=2)["audio_full"] == "2.0" # type: ignore[arg-type]