wcember / pypub

Python library to programatically create epub files
MIT License
273 stars 41 forks source link

test bitrot - pypub/unit_tests_image.ChapterTests.test_save_image() fails due to domain / website no longer existing - fix available #28

Open clach04 opened 11 months ago

clach04 commented 11 months ago
(py27venv) C:\code\py\pypub\pypub>python pypub/unit_tests_image.py
..E.
======================================================================
ERROR: test_save_image (__main__.ChapterTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "pypub/unit_tests_image.py", line 24, in test_save_image
    'test image ' + str(index)),
  File "C:\code\py\pypub\pypub\pypub\chapter.py", line 82, in save_image
    raise ImageErrorException(image_url)
ImageErrorException: Error downloading image from http://bothsides.wpengine.netdna-cdn.com/wp-content/uploads/2015/11/bothsides1.jpg

----------------------------------------------------------------------
Ran 4 tests in 1.347s

FAILED (errors=1)

http://bothsides.wpengine.netdna-cdn.com/wp-content/uploads/2015/11/bothsides1.jpg is (as of 2023-07-29) no longer a working URL.

Archive.org appear to have a copy at https://web.archive.org/web/20190110010653/http://bothsides.wpengine.netdna-cdn.com/wp-content/uploads/2015/11/bothsides1.jpg (but this URL can not be used, looks like https://web.archive.org/web/20190110010653if_/http://bothsides.wpengine.netdna-cdn.com/wp-content/uploads/2015/11/bothsides1.jpg could be used?)