forked from kenzuya/unshackle
test: delete slow, timing-based and redundant tests
This commit is contained in:
@@ -4,11 +4,9 @@ from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
from unshackle.core.export_name import audio_token
|
||||
from unshackle.core.manifests.dash import DASH
|
||||
from unshackle.core.manifests.hls import HLS
|
||||
from unshackle.core.tracks import Audio, Tracks
|
||||
from unshackle.core.wire import deserialize_audio, serialize_audio_track, track_from_dict, track_to_dict
|
||||
|
||||
VIRTUALIZED = '<SupplementalProperty schemeIdUri="tag:dolby.com,2016:dash:virtualized_content:2016" value="1"/>'
|
||||
|
||||
@@ -60,11 +58,6 @@ def test_an_hls_immersive_stereo_rendition_without_the_atmos_identifier_is_not_a
|
||||
assert audio.channels == 2.0
|
||||
|
||||
|
||||
@pytest.mark.parametrize("channels", ["2", "6"])
|
||||
def test_a_plain_hls_ac4_rendition_is_not_atmos(channels: str) -> None:
|
||||
assert not hls_audio(channels, codecs="ac-4.02.01.00").atmos
|
||||
|
||||
|
||||
def test_an_hls_joc_rendition_keeps_its_joc_count() -> None:
|
||||
audio = hls_audio("16/JOC", codecs="ec-3")
|
||||
|
||||
@@ -91,23 +84,5 @@ def test_a_dash_ac4_representation_without_a_cited_atmos_signal_is_not_atmos(
|
||||
assert not audio.atmos
|
||||
|
||||
|
||||
def test_the_export_name_reads_atmos_without_a_joc_count() -> None:
|
||||
assert audio_token(hls_audio("2/IMSA,ATMOS")).endswith("2.0atmos")
|
||||
|
||||
|
||||
def test_atmos_without_a_joc_count_is_part_of_the_track_signature() -> None:
|
||||
assert Tracks.signature(hls_audio("2/IMSA,ATMOS")) != Tracks.signature(hls_audio("2/IMSA"))
|
||||
|
||||
|
||||
def test_atmos_without_a_joc_count_survives_the_export_track_dict() -> None:
|
||||
audio = track_from_dict(track_to_dict(hls_audio("2/IMSA,ATMOS")))
|
||||
|
||||
assert audio.atmos
|
||||
assert not audio.joc
|
||||
|
||||
|
||||
def test_hls_atmos_without_a_joc_count_survives_the_remote_round_trip() -> None:
|
||||
audio = deserialize_audio(serialize_audio_track(hls_audio("2/IMSA,ATMOS")))
|
||||
|
||||
assert audio.atmos
|
||||
assert not audio.joc
|
||||
|
||||
Reference in New Issue
Block a user