jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/500394 )

Change subject: [bugfix] Use a new file for tests
......................................................................

[bugfix] Use a new file for tests

The old file "File:Băieţi de Cartier - La Familia cover.jpg"
has been deleted. Use a new file which has a redirect.

Bug: T219752
Change-Id: Idc44028baeaac1741a97cc1b1f72c4cf998bab29
---
M tests/site_tests.py
1 file changed, 4 insertions(+), 6 deletions(-)

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



diff --git a/tests/site_tests.py b/tests/site_tests.py
index 540db79..b090ccf 100644
--- a/tests/site_tests.py
+++ b/tests/site_tests.py
@@ -2684,9 +2684,7 @@
     def setUp(self):
         """Setup tests."""
         super(TestBacklinks, self).setUp()
-        self.page = pywikibot.Page(
-            self.site,
-            'File:Băieţi de Cartier - La Familia cover.jpg')
+        self.page = pywikibot.Page(self.site, 'File:BoA – Woman.png')
         self.backlinks = list(self.page.backlinks(follow_redirects=False,
                                                   filter_redirects=True,
                                                   total=5))
@@ -2715,11 +2713,11 @@
     def test_backlinks_redirects_pageid(self):
         """Test backlinks redirects pageid."""
         for page in self.backlinks:
-            self.assertEqual(page.pageid, 45341783)
+            self.assertEqual(page.pageid, 58874049)
         for page in self.references:
-            self.assertEqual(page.pageid, 45341783)
+            self.assertEqual(page.pageid, 58874049)
         for page in self.nofollow:
-            self.assertEqual(page.pageid, 45341783)
+            self.assertEqual(page.pageid, 58874049)


 class TestCommonsSite(TestCase):

--
To view, visit https://gerrit.wikimedia.org/r/500394
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Idc44028baeaac1741a97cc1b1f72c4cf998bab29
Gerrit-Change-Number: 500394
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Dalba <[email protected]>
Gerrit-Reviewer: Dvorapa <[email protected]>
Gerrit-Reviewer: Zoranzoki21 <[email protected]>
Gerrit-Reviewer: jenkins-bot (75)
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to