jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1312242?usp=email )
Change subject: tests: remove test_proofreadwiki and en.citizendium.org test
......................................................................
tests: remove test_proofreadwiki and en.citizendium.org test
Both test fails due to ClientError 403 - authorization will not help.
A Cloudflare Bot Challenge blocks API access.
Bug: T404583
Bug: T331223
Change-Id: Ic32b59f76a4c50c23d414e0744164d1b8a354586
---
M tests/site_detect_tests.py
1 file changed, 0 insertions(+), 11 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/site_detect_tests.py b/tests/site_detect_tests.py
index e6dadbb..c6094e3 100755
--- a/tests/site_detect_tests.py
+++ b/tests/site_detect_tests.py
@@ -7,7 +7,6 @@
"""Test for site detection."""
from __future__ import annotations
-import os
import unittest
from contextlib import suppress
from http import HTTPStatus
@@ -60,7 +59,6 @@
standard_version_sites = (
'http://www.ck-wissen.de/ckwiki/index.php?title=$1',
- 'http://en.citizendium.org/wiki/$1',
'http://www.wikichristian.org/index.php?title=$1',
)
@@ -104,17 +102,8 @@
for url in self.standard_version_sites:
nl = urlparse(url).netloc
with self.subTest(url=nl):
- if os.getenv('GITHUB_ACTIONS') and nl == 'en.citizendium.org':
- self.skipTest('Skip test on github due to T404583')
-
self.assertSite(url)
- def test_proofreadwiki(self) -> None:
- """Test detection of proofwiki.org site."""
- if os.getenv('GITHUB_ACTIONS'):
- self.skipTest('Skip test on github due to T331223')
- self.assertSite('http://proofwiki.org/wiki/$1') # pragma: no cover
-
def test_non_standard_version_sites(self) -> None:
"""Test detection of non standard MediaWiki sites."""
for url in self.non_standard_version_sites:
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1312242?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ic32b59f76a4c50c23d414e0744164d1b8a354586
Gerrit-Change-Number: 1312242
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]