Skip to content

Commit

Permalink
Revert "tests: Skip wikiblame tests due to T381262"
Browse files Browse the repository at this point in the history
This reverts commit f83ab28.

Reason for revert: solved upstream

Bug: T381262
Change-Id: I74ec5d56f20521751123118133cf6db505790ff5
  • Loading branch information
xqt authored and Gerrit Code Review committed Dec 2, 2024
1 parent f83ab28 commit 093ccad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 6 additions & 6 deletions pywikibot/page/_toolforge.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def main_authors(self) -> collections.Counter[str, int]:
>>> import pywikibot
>>> site = pywikibot.Site('wikipedia:eu')
>>> page = pywikibot.Page(site, 'Python (informatika)')
>>> auth = page.main_authors() # doctest: +SKIP
>>> auth.most_common(1) # doctest: +SKIP
[('Ksarasola', 82)] # doctest: +SKIP
>>> auth = page.main_authors()
>>> auth.most_common(1)
[('Ksarasola', 82)]
.. important:: Only implemented for main namespace pages and
only wikipedias of :attr:`WIKIBLAME_CODES` are supported.
Expand Down Expand Up @@ -126,9 +126,9 @@ def authorship(
>>> import pywikibot
>>> site = pywikibot.Site('wikipedia:en')
>>> page = pywikibot.Page(site, 'Pywikibot')
>>> auth = page.authorship() # doctest: +SKIP
>>> auth # doctest: +SKIP
{'1234qwer1234qwer4': (68, 100.0)} # doctest: +SKIP
>>> auth = page.authorship()
>>> auth
{'1234qwer1234qwer4': (68, 100.0)}
.. important:: Only implemented for main namespace pages and
only wikipedias of :attr:`WIKIBLAME_CODES` are supported.
Expand Down
2 changes: 0 additions & 2 deletions tests/wikiblame_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def test_exceptions(self):
page.authorship()

@require_modules('wikitextparser')
@unittest.expectedFailure # T381262
def test_main_authors(self):
"""Test main_authors() method."""
page = pywikibot.Page(self.site, 'Python (programmeertaal)')
Expand All @@ -49,7 +48,6 @@ def test_main_authors(self):
self.assertIsInstance(values[1], float)

@require_modules('wikitextparser')
@unittest.expectedFailure # T381262
def test_restrictions(self):
"""Test main_authors() method with restrictions."""
page = pywikibot.Page(pywikibot.Site('wikipedia:en'), 'Python')
Expand Down

0 comments on commit 093ccad

Please sign in to comment.