Skip to content

Fix failing unit tests so CI can pass #442

@afuetterer

Description

@afuetterer

As suggested in #437.

There are 3 failing unit tests:

FAILED tika/tests/test_ssl_link.py::CreateTest::test_url - urllib.error.HTTPError: HTTP Error 403: Forbidden
FAILED tika/tests/test_tika.py::CreateTest::test_remote_jpg - urllib.error.HTTPError: HTTP Error 403: Forbidden
FAILED tika/tests/test_tika.py::CreateTest::test_remote_pdf - urllib.error.HTTPError: HTTP Error 502: Bad Gateway

Questions

  1. What is tika/tests/test_ssl_link.py supposed to test? The 403 Forbidden error occurs, because urlretrieve's headers are not welcome. If I replace the urltrieve with a requests get, I can get the image. But I don't know why this is tested at all. It tests if urlretrieve is working and can download a file? This has nothing to do with tika-python, right? I suggest dropping the test.
  2. I guess also header issue
  3. url outdated, service at http://appsrv.achd.net/reports/rwservlet?food_rep_insp&P_ENCOUNTER=201504160015 not available? what kind of file is needed here?

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions