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:
@@ -79,14 +79,6 @@ def test_standard_resolution(width: int, height: int, expected: int) -> None:
|
||||
assert standard_resolution(width, height) == expected
|
||||
|
||||
|
||||
def test_a_picture_with_one_side_uses_it() -> None:
|
||||
assert standard_resolution(None, 1088) == 1080
|
||||
|
||||
|
||||
def test_a_picture_with_no_size_has_no_resolution() -> None:
|
||||
assert standard_resolution(None, None) is None
|
||||
|
||||
|
||||
def test_the_filename_quality_uses_the_standard_resolution() -> None:
|
||||
assert quality(1920, 1088) == "1080p"
|
||||
assert quality(1920, 800) == "1080p"
|
||||
@@ -96,10 +88,6 @@ def test_an_interlaced_picture_keeps_the_i_suffix() -> None:
|
||||
assert quality(1920, 1088, scan_type="Interlaced") == "1080i"
|
||||
|
||||
|
||||
def test_a_video_track_with_no_size_gives_an_empty_quality() -> None:
|
||||
assert quality(None, None) == ""
|
||||
|
||||
|
||||
def video(width: int, height: int) -> Video:
|
||||
return Video(url="https://example.test/v.mpd", language="en", codec=Video.Codec.AVC, width=width, height=height)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user