Page MenuHomePhabricator

WikibaseItemFilterPageGeneratorTestCase.test_filter_pages_without_item fails
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce
pwb pagegenerators_tests -v WikibaseItemFilterPageGeneratorTestCase

What happens?:

tests: max_retries reduced from 15 to 1
test_filter_pages_with_item (__main__.WikibaseItemFilterPageGeneratorTestCase)
Test WikibaseItemFilterPageGenerator on pages with item. ... ok
test_filter_pages_without_item (__main__.WikibaseItemFilterPageGeneratorTestCase)
Test WikibaseItemFilterPageGenerator on pages without item. ... FAIL

======================================================================
FAIL: test_filter_pages_without_item (__main__.WikibaseItemFilterPageGeneratorTestCase)
Test WikibaseItemFilterPageGenerator on pages without item.
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\tests\pagegenerators_tests.py", line 677, in test_filter_pages_without_item
    self.assertLength(list(gen), 0)
  File "C:\pwb\GIT\core\tests\aspects.py", line 127, in assertLength
    self.fail(msg)
AssertionError: len([Page('Talk:Main Page')]) != 0

----------------------------------------------------------------------
Ran 2 tests in 2.502s

FAILED (failures=1)

Reason:

with https://www.wikidata.org/w/index.php?title=Q112079466&action=history the item page was created as Q112079466

Software version:
Tested with Pywikibot 7.1-7.3

Event Timeline

Xqt triaged this task as High priority.May 20 2022, 5:12 PM

Change 793792 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [tests] ignore failing pg test until WD item was deleted

https://gerrit.wikimedia.org/r/793792

Change 793792 merged by Xqt:

[pywikibot/core@master] [tests] ignore failing pg test until WD item was deleted

https://gerrit.wikimedia.org/r/793792

Xqt changed the task status from Open to Stalled.May 21 2022, 1:19 AM
Urbanecm changed the task status from Stalled to Open.May 21 2022, 10:15 AM
Urbanecm subscribed.

I've deleted the item. Reopening the task.

Change 793793 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] Revert "[tests] ignore failing pg test until WD item was deleted"

https://gerrit.wikimedia.org/r/793793

Xqt claimed this task.

Change 793793 merged by jenkins-bot:

[pywikibot/core@master] Revert "[tests] ignore failing pg test until WD item was deleted"

https://gerrit.wikimedia.org/r/793793