def METHOD_NAME(
    http: type[httpretty.httpretty], uploader: Uploader
) -> None:
    http.register_uri(http.POST, "https://foo.com", status=403, body="Unauthorized")
    with pytest.raises(UploadError):
        uploader.upload("https://foo.com", skip_existing=True)