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:
@@ -494,11 +494,3 @@ def test_trim_overlaps_bounds_the_sample_count(tmp_path: Path) -> None:
|
||||
path = tmp_path / "audio.mp4"
|
||||
path.write_bytes(init_segment(48000) + huge + audio_fragment(100, 2))
|
||||
assert trim_overlaps(path, {100}) == 0
|
||||
|
||||
|
||||
def test_trim_overlaps_logs_a_fragment_it_cannot_rewrite(tmp_path: Path, caplog: pytest.LogCaptureFixture) -> None:
|
||||
path = tmp_path / "audio.mp4"
|
||||
path.write_bytes(init_segment(48000) + overlapping(extra=box(b"sdtp", b"\0" * 4)))
|
||||
with caplog.at_level("DEBUG", logger="DASH"):
|
||||
assert trim_overlaps(path, {JOIN}) == 0
|
||||
assert "1 overlapping audio fragments" in caplog.text
|
||||
|
||||
Reference in New Issue
Block a user