Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1358348?usp=email )

Change subject: tests: skip all tests using Lobbypedia
......................................................................

tests: skip all tests using Lobbypedia

Lobbypedia is temporary offline due to security issue.

Bug: T442266
Change-Id: I8b7b1c5122e2d7c324b8415c853b32323d1897e9
---
M tests/logentries_tests.py
1 file changed, 6 insertions(+), 0 deletions(-)

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




diff --git a/tests/logentries_tests.py b/tests/logentries_tests.py
index a4fa895..2947463 100755
--- a/tests/logentries_tests.py
+++ b/tests/logentries_tests.py
@@ -72,6 +72,12 @@
                 raise unittest.SkipTest(f'API timeout on Lobbypedia: {e}')
             raise

+    def setUp(self) -> None:
+        """Skip Lobbypedia tests while the wiki is offline."""
+        if self._testMethodName.endswith('_old'):
+            self.skipTest('Lobbypedia is temporarily offline (T442266).')
+        super().setUp()
+
     def _get_logentry(self, logtype):
         """Retrieve a single log entry."""
         if self.site_key == 'old':

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1358348?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: I8b7b1c5122e2d7c324b8415c853b32323d1897e9
Gerrit-Change-Number: 1358348
Gerrit-PatchSet: 4
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Mahveotm <[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]

Reply via email to