test(conftest): reset the decrypt hook and the licence-only flag that a dl run leaves set

This commit is contained in:
imSp4rky
2026-12-02 17:12:41 -07:00
parent 9622ebfdae
commit 95d36378f4
3 changed files with 13 additions and 12 deletions
+2 -7
View File
@@ -341,12 +341,7 @@ def test_the_licence_step_without_a_callback_raises_a_drm_error(tmp_path):
assert ctx.statuses == ["[red]FAILED"] # type: ignore[attr-defined]
@pytest.fixture
def no_hook(monkeypatch):
monkeypatch.setattr(verify, "DECRYPT_HOOK", None)
def test_complete_track_decrypts_then_cleans_up(tmp_path, seen, no_hook):
def test_complete_track_decrypts_then_cleans_up(tmp_path, seen):
ctx = make_ctx(tmp_path)
ctx.save_dir.mkdir()
ctx.save_path.write_bytes(b"merged")
@@ -363,7 +358,7 @@ def test_complete_track_decrypts_then_cleans_up(tmp_path, seen, no_hook):
assert not ctx.save_dir.exists()
def test_complete_track_after_segment_decryption_only_checks(tmp_path, seen, no_hook):
def test_complete_track_after_segment_decryption_only_checks(tmp_path, seen):
ctx = make_ctx(tmp_path)
ctx.save_path.write_bytes(b"merged")
drm = FakeDRM(seen)