Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
C:\pwb\GIT\core>py -3.13 -m pwb file_tests -v TestFilePageLatestFileInfo
tests: max_retries reduced from 15 to 3
test_get_file_url (__main__.TestFilePageLatestFileInfo.test_get_file_url)
Get File url. ... ok
test_get_file_url_thumburl_from_height
(__main__.TestFilePageLatestFileInfo.test_get_file_url_thumburl_from_height)
Get File thumburl from height. ... FAIL
test_get_file_url_thumburl_from_url_param
(__main__.TestFilePageLatestFileInfo.test_get_file_url_thumburl_from_url_param)
Get File thumburl from height. ... FAIL
test_get_file_url_thumburl_from_width
(__main__.TestFilePageLatestFileInfo.test_get_file_url_thumburl_from_width)
Get File thumburl from width. ... FAIL
test_lazyload_metadata
(__main__.TestFilePageLatestFileInfo.test_lazyload_metadata)
Test metadata lazy load. ... ok
======================================================================
FAIL: test_get_file_url_thumburl_from_height
(__main__.TestFilePageLatestFileInfo.test_get_file_url_thumburl_from_height)
Get File thumburl from height.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\pwb\GIT\core\tests\file_tests.py", line 265, in
test_get_file_url_thumburl_from_height
self.assertEqual(
~~~~~~~~~~~~~~~~^
self.image.get_file_url(url_height=100, url_param='1000px'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'https://upload.wikimedia.org/wikipedia/commons/thumb/'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'd/d3/Albert_Einstein_Head.jpg/75px-Albert_Einstein_Head.jpg')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'http[47
chars]b/d/d3/Albert_Einstein_Head.jpg/120px-Albert_Einstein_Head.jpg' !=
'http[47 chars]b/d/d3/Albert_Einstein_Head.jpg/75px-Albert_Einstein_Head.jpg'
-
https://upload.wikimedia.org/wikipedia/commons/thumb/d/d3/Albert_Einstein_Head.jpg/120px-Albert_Einstein_Head.jpg
?
^^^
+
https://upload.wikimedia.org/wikipedia/commons/thumb/d/d3/Albert_Einstein_Head.jpg/75px-Albert_Einstein_Head.jpg
?
^^
======================================================================
FAIL: test_get_file_url_thumburl_from_url_param
(__main__.TestFilePageLatestFileInfo.test_get_file_url_thumburl_from_url_param)
Get File thumburl from height.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\pwb\GIT\core\tests\file_tests.py", line 276, in
test_get_file_url_thumburl_from_url_param
self.assertEqual(
~~~~~~~~~~~~~~~~^
self.image.get_file_url(url_param='100px'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'https://upload.wikimedia.org/wikipedia/commons/thumb/'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'd/d3/Albert_Einstein_Head.jpg/100px-Albert_Einstein_Head.jpg')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'http[47
chars]b/d/d3/Albert_Einstein_Head.jpg/120px-Albert_Einstein_Head.jpg' !=
'http[47 chars]b/d/d3/Albert_Einstein_Head.jpg/100px-Albert_Einstein_Head.jpg'
-
https://upload.wikimedia.org/wikipedia/commons/thumb/d/d3/Albert_Einstein_Head.jpg/120px-Albert_Einstein_Head.jpg
?
^
+
https://upload.wikimedia.org/wikipedia/commons/thumb/d/d3/Albert_Einstein_Head.jpg/100px-Albert_Einstein_Head.jpg
?
^
======================================================================
FAIL: test_get_file_url_thumburl_from_width
(__main__.TestFilePageLatestFileInfo.test_get_file_url_thumburl_from_width)
Get File thumburl from width.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\pwb\GIT\core\tests\file_tests.py", line 254, in
test_get_file_url_thumburl_from_width
self.assertEqual(
~~~~~~~~~~~~~~~~^
self.image.get_file_url(url_width=100, url_param='1000px'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'https://upload.wikimedia.org/wikipedia/commons/thumb/'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'd/d3/Albert_Einstein_Head.jpg/100px-Albert_Einstein_Head.jpg')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'http[47
chars]b/d/d3/Albert_Einstein_Head.jpg/120px-Albert_Einstein_Head.jpg' !=
'http[47 chars]b/d/d3/Albert_Einstein_Head.jpg/100px-Albert_Einstein_Head.jpg'
-
https://upload.wikimedia.org/wikipedia/commons/thumb/d/d3/Albert_Einstein_Head.jpg/120px-Albert_Einstein_Head.jpg
?
^
+
https://upload.wikimedia.org/wikipedia/commons/thumb/d/d3/Albert_Einstein_Head.jpg/100px-Albert_Einstein_Head.jpg
?
^
----------------------------------------------------------------------
Ran 5 tests in 0.891s
TASK DETAIL
https://phabricator.wikimedia.org/T391761
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, mevo, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, Viztor, Wenyi, Tbscho,
MayS, Mdupont, JJMC89, Dvorapa, Altostratus, binbot, Avicennasis, Hannolans,
mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]