jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1136087?usp=email )

Change subject: tests: pass expected failure with FilePage.get_file_url()
......................................................................

tests: pass expected failure with FilePage.get_file_url()

Starting with MW 1.44 thumbnail size is restricted to a list of
size widths, see https://www.mediawiki.org/wiki/Manual:$wgThumbnailSteps.

Ignore this failing tests until we have a solution either in
API:Imageinfo or the given FilePage method to enable CI tests/file_tests.py
in meantime.

Bug: T391761
Change-Id: I3ad8a0f755ca99ef896b563ae4208cbd4033bbf4
---
M tests/file_tests.py
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved




diff --git a/tests/file_tests.py b/tests/file_tests.py
index 63b693b..b7cea53 100755
--- a/tests/file_tests.py
+++ b/tests/file_tests.py
@@ -1,7 +1,7 @@
 #!/usr/bin/env python3
 """FilePage tests."""
 #
-# (C) Pywikibot team, 2014-2024
+# (C) Pywikibot team, 2014-2025
 #
 # Distributed under the terms of the MIT license.
 #
@@ -247,6 +247,7 @@
                          'https://upload.wikimedia.org/wikipedia/commons/'
                          'd/d3/Albert_Einstein_Head.jpg')

+    @unittest.expectedFailure
     def test_get_file_url_thumburl_from_width(self):
         """Get File thumburl from width."""
         self.assertTrue(self.image.exists())
@@ -258,6 +259,7 @@
         self.assertEqual(self.image.latest_file_info.thumbwidth, 100)
         self.assertEqual(self.image.latest_file_info.thumbheight, 133)

+    @unittest.expectedFailure
     def test_get_file_url_thumburl_from_height(self):
         """Get File thumburl from height."""
         self.assertTrue(self.image.exists())
@@ -269,6 +271,7 @@
         self.assertEqual(self.image.latest_file_info.thumbwidth, 75)
         self.assertEqual(self.image.latest_file_info.thumbheight, 100)

+    @unittest.expectedFailure
     def test_get_file_url_thumburl_from_url_param(self):
         """Get File thumburl from height."""
         self.assertTrue(self.image.exists())

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1136087?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I3ad8a0f755ca99ef896b563ae4208cbd4033bbf4
Gerrit-Change-Number: 1136087
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to