jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, but someone else must approve Zhuyifei1999: Looks good to me, approved jenkins-bot: Verified
[bugfix] Fix TestCategoryObject test methods

Category of "en:Wikipedia:Terms of use" has been changed.
Use another page instead to solve the test.

Bug: T235320
Change-Id: Iec7a1fd9900447ca507c4fcf4d8482afc9d736bc
---
M tests/category_tests.py
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/category_tests.py b/tests/category_tests.py
index 19f667f..f17cef9 100644
--- a/tests/category_tests.py
+++ b/tests/category_tests.py
@@ -72,7 +72,7 @@
site = self.get_site()
cat = pywikibot.Category(site, 'Category:Wikipedia legal policies')
p1 = pywikibot.Page(site, 'Category:Wikipedia disclaimers')
- p2 = pywikibot.Page(site, 'Wikipedia:Terms of use')
+ p2 = pywikibot.Page(site, 'Wikipedia:Privacy policy')
p3 = pywikibot.Page(site, 'Wikipedia:Risk disclaimer')

members = list(cat.members())
@@ -122,7 +122,7 @@
"""Test the articles method."""
site = self.get_site()
cat = pywikibot.Category(site, 'Category:Wikipedia legal policies')
- p1 = pywikibot.Page(site, 'Wikipedia:Terms of use')
+ p1 = pywikibot.Page(site, 'Wikipedia:Privacy policy')
p2 = pywikibot.Page(site, 'Wikipedia:Risk disclaimer')

articles = list(cat.articles())

To view, visit change 542666. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Iec7a1fd9900447ca507c4fcf4d8482afc9d736bc
Gerrit-Change-Number: 542666
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: Zhuyifei1999 <zhuyifei1999@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)