jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/806865 )

Change subject: [tests] Update TestMementoWebCite
......................................................................

[tests] Update TestMementoWebCite

Bug: T193924
Change-Id: I2a4403ad3983da1ef90b0ce6f1c6a29fb10379e5
---
M tests/memento_tests.py
1 file changed, 5 insertions(+), 6 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/memento_tests.py b/tests/memento_tests.py
index a8e2768..a20da67 100755
--- a/tests/memento_tests.py
+++ b/tests/memento_tests.py
@@ -37,20 +37,19 @@
         return result


-class TestMementoWebCite(MementoTestCase):
+class TestMementoArchive(MementoTestCase):

     """New WebCite Memento tests."""

-    timegate_uri = 'http://timetravel.mementoweb.org/webcite/timegate/'
-    hostname = ('http://timetravel.mementoweb.org/webcite/'
-                'timemap/json/http://google.com')
+    timegate_uri = 'http://timetravel.mementoweb.org/timegate/'
+    hostname = timegate_uri.replace('gate/', 'map/json/http://google.com')

     def test_newest(self):
-        """Test WebCite for newest https://google.com.""";
+        """Test Archive for newest https://google.com.""";
         archivedversion = self._get_archive_url('https://google.com')
         parsed = urlparse(archivedversion)
         self.assertIn(parsed.scheme, ['http', 'https'])
-        self.assertEqual(parsed.netloc, 'www.webcitation.org')
+        self.assertEqual(parsed.netloc, 'archive.ph')


 class TestMementoDefault(MementoTestCase):

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/806865
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I2a4403ad3983da1ef90b0ce6f1c6a29fb10379e5
Gerrit-Change-Number: 806865
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to