Page MenuHomePhabricator

test_url_image() of proofreadpage_tests.TestProofreadPageValidSite fails
Closed, ResolvedPublic

Description

test_url_image() of proofreadpage_tests.TestProofreadPageValidSite fails recently

D:\pwb\GIT\core>py -3.11 -m pwb proofreadpage_tests -v TestProofreadPageValidSite.test_url_image
tests: max_retries reduced from 15 to 3
test_url_image (__main__.TestProofreadPageValidSite.test_url_image)
Test fetching of url image of the scan of ProofreadPage. ... FAIL

======================================================================
FAIL: test_url_image (__main__.TestProofreadPageValidSite.test_url_image)
Test fetching of url image of the scan of ProofreadPage.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\pwb\GIT\core\tests\proofreadpage_tests.py", line 406, in test_url_image
    self.assertEqual(page.url_image, self.valid['url_image'])
AssertionError: 'http[85 chars]1.djvu/page12-2012px-Popular_Science_Monthly_Volume_1.djvu.jpg' != 'http[85 chars]1.djvu/page12-2267px-Popular_Science_Monthly_Volume_1.djvu.jpg'
- https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/Popular_Science_Monthly_Volume_1.djvu/page12-2012px-Popular_Science_Monthly_Volume_1.djvu.jpg
?                                                                                                         --
+ https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/Popular_Science_Monthly_Volume_1.djvu/page12-2267px-Popular_Science_Monthly_Volume_1.djvu.jpg
?                                                                                                          ++


----------------------------------------------------------------------
Ran 1 test in 2.846s

FAILED (failures=1)

https://integration.wikimedia.org/ci/job/pywikibot-core-tox-deeptest-py37/263/console

Event Timeline

Xqt triaged this task as High priority.Sat, Jun 29, 10:43 AM

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

[pywikibot/core@master] [fix] Fix url_image url

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

Change #1050699 merged by jenkins-bot:

[pywikibot/core@master] [fix] Fix url_image url

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

Xqt claimed this task.