forked from kenzuya/unshackle
fix(subprocess): name the tool, exit and reason in external-tool errors
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user