jenkins-bot has submitted this change and it was merged.
Change subject: Check a valid WebCite memento link ......................................................................
Check a valid WebCite memento link
The WebCite timegate URL returns a 400 error if a URI is not provided. Use a valid timemap URL instead, as it has a small response payload.
Bug: T128998 Change-Id: I9cb473279bb95d056751a3ce41fe809fb62ed283 --- M tests/weblinkchecker_tests.py 1 file changed, 4 insertions(+), 2 deletions(-)
Approvals: John Vandenberg: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/weblinkchecker_tests.py b/tests/weblinkchecker_tests.py index 2080d98..5e052e2 100644 --- a/tests/weblinkchecker_tests.py +++ b/tests/weblinkchecker_tests.py @@ -52,7 +52,8 @@ """Test WebCite Memento using old weblib tests."""
timegate_uri = 'http://timetravel.mementoweb.org/webcite/timegate/' - hostname = timegate_uri + hostname = ('http://timetravel.mementoweb.org/webcite/' + 'timemap/json/http://google.com')
class TestMementoWebCite(MementoTestCase): @@ -60,7 +61,8 @@ """New WebCite Memento tests."""
timegate_uri = 'http://timetravel.mementoweb.org/webcite/timegate/' - hostname = timegate_uri + hostname = ('http://timetravel.mementoweb.org/webcite/' + 'timemap/json/http://google.com')
def test_newest(self): """Test WebCite for newest https://google.com."""