mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-29 04:15:09 +00:00
feat(dl): name the free space of a nearly full temp volume on the failure line
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user