Skip to content

Commit

Permalink
[bugfix] Re-enable isHiddenCategory test_articles
Browse files Browse the repository at this point in the history
- [[Category:Wikipedia category]] became a hidden category and the tests failed.
  take [[Category:Wikipedia]] instead.

Bug: T166975
Change-Id: I78fc4aec1025ca6ec22da0dbb2ae33af477d2a75
  • Loading branch information
xqt committed Jun 4, 2017
1 parent 0cf81ea commit 95fa6de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/category_tests.py
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down Expand Up @@ -39,7 +39,7 @@ def test_is_hidden(self):
"""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())

Expand Down

0 comments on commit 95fa6de

Please sign in to comment.