jenkins-bot merged this change.
[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.