jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/542666 )
Change subject: [bugfix] Fix TestCategoryObject test methods ......................................................................
[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(-)
Approvals: Dvorapa: Looks good to me, but someone else must approve Zhuyifei1999: Looks good to me, approved jenkins-bot: Verified
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())
pywikibot-commits@lists.wikimedia.org