feat(dl): name the free space of a nearly full temp volume on the failure line

This commit is contained in:
imSp4rky
2026-11-28 14:35:29 -07:00
parent 5167f4f9d9
commit 7856d53950
8 changed files with 156 additions and 9 deletions
+3 -1
View File
@@ -17,6 +17,7 @@ import pytest
from pywidevine.pssh import PSSH
from tests.core.key_resolver import key_table, resolver, vaults_of
from unshackle.commands import dl as dl_module
from unshackle.commands.dl import dl
from unshackle.core.drm import Widevine, key_resolution
from unshackle.core.drm.key_resolution import ContentKeyResolver
@@ -117,7 +118,8 @@ def test_the_retry_after_a_bad_vault_key_ends_in_the_import_error(
assert not (tmp_path / "video.mp4.enc").exists()
def test_a_download_stopped_by_a_click_exception_reports_only_its_message() -> None:
def test_a_download_stopped_by_a_click_exception_reports_only_its_message(monkeypatch: pytest.MonkeyPatch) -> None:
monkeypatch.setattr(dl_module, "LOW_FREE_SPACE", 0)
error = ImportService.missing_key(SimpleNamespace(drm=[FakeDRM({})]))
lines = dl.failure_lines(error)