John Vandenberg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/277213
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(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/13/277213/1
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."""
--
To view, visit https://gerrit.wikimedia.org/r/277213
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9cb473279bb95d056751a3ce41fe809fb62ed283
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits