Page MenuHomePhabricator

pagegenerators_tests fails on wowwiki:uk
Open, HighPublic

Description

test_wanted_files method of .pagegenerators_tests.TestWantedFactoryGenerator fails

======================================================================
ERROR: test_wanted_files (tests.pagegenerators_tests.TestWantedFactoryGenerator)
Test wantedfiles generator.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/pywikibot/pywikibot/tests/pagegenerators_tests.py", line 1457, in test_wanted_files
    self.assertIsInstance(page.latest_file_info.mime, str)
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/page/_filepage.py", line 101, in latest_file_info
    self.site.loadimageinfo(self, history=True)
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/site/_apisite.py", line 1531, in loadimageinfo
    self._update_page(page, query, verify_imageinfo=True)
  File "/home/runner/work/pywikibot/pywikibot/pywikibot/site/_apisite.py", line 1444, in _update_page
    raise NoPageError(page)
pywikibot.exceptions.NoPageError: Page [[uk:Файл:AllianceNPCEliteRare 32.png]] doesn't exist.

https://github.com/wikimedia/pywikibot/actions/runs/8651605131/job/23734359400#step:12:14

The commandn line is pwb -site:wowwiki:uk pagegenerators_tests -v TestWantedFactoryGenerator.test_wanted_files

Event Timeline

Xqt triaged this task as High priority.Apr 12 2024, 7:06 AM
Xqt updated the task description. (Show Details)

Looks like 'imageinfo' is not found in api.PageGenerator.result's pagedict for api._generators.update_page and FilePage._load_file_revisions() is not called that function.