jenkins-bot submitted this change.

View Change


Approvals: DannyS712: Looks good to me, approved Xqt: Looks good to me, approved jenkins-bot: Verified
[tests] test that https://wikimediafoundation.org/$1 is not a wiki

Bug: T356013
Change-Id: I0307691ee34dad5e1c2b7a128ed6b759658fb70a
---
M tests/site_detect_tests.py
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/tests/site_detect_tests.py b/tests/site_detect_tests.py
index 1cafd2c..0f703ff 100755
--- a/tests/site_detect_tests.py
+++ b/tests/site_detect_tests.py
@@ -91,6 +91,9 @@
'http://www.merriam-webster.com/'
'cgi-bin/dictionary?book=Dictionary&va=$1',
'http://arxiv.org/abs/$1',
+ # looks like a MW site but isn't, api is redirected to
+ # https://foundation.wikimedia.org
+ 'https://wikimediafoundation.org/$1',
)

failing_sites = [

To view, visit change 994748. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I0307691ee34dad5e1c2b7a128ed6b759658fb70a
Gerrit-Change-Number: 994748
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: DannyS712 <dannys712.wiki@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged