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:
@@ -233,26 +233,6 @@ def test_the_server_reads_the_head_of_a_one_file_track_with_drm(example_plugins,
|
||||
)
|
||||
|
||||
|
||||
def test_only_an_unanswered_track_draws_a_debug_line(caplog):
|
||||
"""A requested track the server lists in clear_tracks carries no DRM, so its missing keys draw no line.
|
||||
|
||||
An unanswered track gets a debug line only: its own licence follows, and that one fails the run.
|
||||
"""
|
||||
video_track = SimpleNamespace(id="v-1", drm=None)
|
||||
audio_track = SimpleNamespace(id="a-1", drm=None)
|
||||
|
||||
class Tracks(list):
|
||||
videos = [video_track]
|
||||
audio = [audio_track]
|
||||
|
||||
with caplog.at_level(logging.DEBUG):
|
||||
install_reply({"keys": {}, "clear_tracks": ["a-1"]}, SimpleNamespace(tracks=Tracks([video_track, audio_track])))
|
||||
|
||||
assert [(r.levelname, r.message) for r in caplog.records if "no content keys" in r.message] == [
|
||||
("DEBUG", "Server CDM returned no content keys for track simplenamespace (v-1)")
|
||||
]
|
||||
|
||||
|
||||
def test_the_batch_takes_the_key_of_a_whole_file_cipher(caplog):
|
||||
"""The server licensed the track's whole-file cipher: the client takes its key and keeps the cipher."""
|
||||
cipher = ClearKeyCTR(None, bytes(range(16)), b"OggS")
|
||||
|
||||
Reference in New Issue
Block a user