fix(subprocess): name the tool, exit and reason in external-tool errors

This commit is contained in:
imSp4rky
2026-11-28 14:43:29 -07:00
parent 7856d53950
commit 0bd5c4de4f
12 changed files with 305 additions and 165 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ def test_a_missing_decrypter_is_a_drm_error(monkeypatch: pytest.MonkeyPatch) ->
monkeypatch.setattr(binaries, "Mp4decrypt", None)
monkeypatch.setattr(binaries, "ShakaPackager", None)
assert code_of(lambda: decrypters.mp4decrypt(Path("x.mp4"), lambda kids: [])) == APIErrorCode.DRM_ERROR
assert code_of(lambda: decrypters.shaka_decrypt(Path("x.mp4"), "", "Widevine")) == APIErrorCode.DRM_ERROR
assert code_of(lambda: decrypters.shaka_decrypt(Path("x.mp4"), "")) == APIErrorCode.DRM_ERROR
def http_failure(status: Any) -> requests.ConnectionError: