Closed refeed closed 7 years ago
I am working on writing proper unit tests and getting rid of all the tests that depend on any external network, like the archives. Once that is implemented, hopefully, we won't have the need for maintaining these URLs anymore.
Ok, that's good
b133b44 & release v0.6.0 fixes this issue.
When I run the tests in Travis-CI and in my computer. Some of the tests are failing because of the expected result is not same as the real one.
One of them is https://travis-ci.org/refeed/py-memento-client/jobs/253494646#L391
The
AssertionError
above is happen because the real one which has:80
on it (port) is not same as the expected one which doesn't have the port. The port above is added from the timegate server itself which is web.archive.org.This is the result when I do a
curl
for url http://web.archive.org/web/20000815052826/http://www.cnn.com/ :As we can see above,
web.archive.org
is adding the port number on the last of the url which is different with the expected one.So I think
web.archive.org
has been updated its headers content format. There are still manyAssertionError
s, which are still similar with this case, likehttp://
s are changed tohttps://
, etc.