jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1141507?usp=email )
Change subject: tests: Skip authorship() tests
......................................................................
tests: Skip authorship() tests
This module always fails due to missing login procedure
Bug: T392694
Change-Id: Ibc42a5c3e2a570757397e2c5ad00791ac39594e4
---
M pywikibot/page/_toolforge.py
M tests/wikiblame_tests.py
2 files changed, 7 insertions(+), 5 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/page/_toolforge.py b/pywikibot/page/_toolforge.py
index 3f2bbf9..65407b8 100644
--- a/pywikibot/page/_toolforge.py
+++ b/pywikibot/page/_toolforge.py
@@ -74,8 +74,8 @@
>>> import pywikibot
>>> site = pywikibot.Site('wikipedia:eu')
>>> page = pywikibot.Page(site, 'Python (informatika)')
- >>> auth = page.main_authors()
- >>> auth.most_common(1)
+ >>> auth = page.main_authors() # doctest: +SKIP
+ >>> auth.most_common(1) # doctest: +SKIP
[('Ksarasola', 82)]
.. important:: Only implemented for main namespace pages and
@@ -126,8 +126,8 @@
>>> import pywikibot
>>> site = pywikibot.Site('wikipedia:en')
>>> page = pywikibot.Page(site, 'Pywikibot')
- >>> auth = page.authorship()
- >>> auth
+ >>> auth = page.authorship() # doctest: +SKIP
+ >>> auth # doctest: +SKIP
{'1234qwer1234qwer4': (68, 100.0)}
.. important:: Only implemented for main namespace pages and
diff --git a/tests/wikiblame_tests.py b/tests/wikiblame_tests.py
index 0d5057c..0fdb2ab 100644
--- a/tests/wikiblame_tests.py
+++ b/tests/wikiblame_tests.py
@@ -1,6 +1,6 @@
"""Tests for the WikiHistoryMixin."""
#
-# (C) Pywikibot team, 2022-2024
+# (C) Pywikibot team, 2022-2025
#
# Distributed under the terms of the MIT license.
#
@@ -35,6 +35,7 @@
'main_authors method is implemented for main namespace only'):
page.authorship()
+ @unittest.expectedFailure # T392694
@require_modules('wikitextparser')
def test_main_authors(self):
"""Test main_authors() method."""
@@ -47,6 +48,7 @@
self.assertIsInstance(values[0], int)
self.assertIsInstance(values[1], float)
+ @unittest.expectedFailure # T392694
@require_modules('wikitextparser')
def test_restrictions(self):
"""Test main_authors() method with restrictions."""
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1141507?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: Ibc42a5c3e2a570757397e2c5ad00791ac39594e4
Gerrit-Change-Number: 1141507
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]