jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/357119 )
Change subject: [bugfix] Re-enable isHiddenCategory test_articles ......................................................................
[bugfix] Re-enable isHiddenCategory test_articles
- [[Category:Wikipedia category]] became a hidden category and the tests failed. take [[Category:Wikipedia]] instead.
Bug: T166975 Change-Id: I78fc4aec1025ca6ec22da0dbb2ae33af477d2a75 --- M tests/category_tests.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/category_tests.py b/tests/category_tests.py index b4d5c70..e4b4ba1 100644 --- a/tests/category_tests.py +++ b/tests/category_tests.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Tests for the Category class.""" # -# (C) Pywikibot team, 2014-2015 +# (C) Pywikibot team, 2014-2017 # # Distributed under the terms of the MIT license. # @@ -39,7 +39,7 @@ """Test isHiddenCategory.""" site = self.get_site() cat_hidden = pywikibot.Category(site, 'Category:Hidden categories') - cat_not_hidden = pywikibot.Category(site, 'Category:Wikipedia categories') + cat_not_hidden = pywikibot.Category(site, 'Category:Wikipedia') self.assertTrue(cat_hidden.isHiddenCategory()) self.assertFalse(cat_not_hidden.isHiddenCategory())
pywikibot-commits@lists.wikimedia.org