tests.category_tests module#
Tests for the Category class.
- class tests.category_tests.CategoryNewestPages(*args, **kwargs)[source]#
Bases:
CheckHostnameMixin
,ForceCacheMixin
,TestCase
Test newest_pages feature on French Wikinews.
- abstract_class = False#
- cached = True#
- code = 'fr'#
- family = 'wikinews'#
- net = True#
- site = True#
- sites = {'wikinews:fr': {'code': 'fr', 'family': 'wikinews'}}#
- class tests.category_tests.TestCategoryDryObject(*args, **kwargs)[source]#
Bases:
DisconnectedSiteMixin
,TestCase
Test the category object with dry tests.
- NOCATEGORYNAMESPACE_RE = "'(.*?)' is not in the category namespace!"#
- abstract_class = False#
- code = 'en'#
- dry = True#
- family = 'wikipedia'#
- site = True#
- sites = {'wikipedia:en': {'code': 'en', 'family': 'wikipedia'}}#
- class tests.category_tests.TestCategoryObject(*args, **kwargs)[source]#
Bases:
CheckHostnameMixin
,ForceCacheMixin
,TestCase
Test Category object.
- NOCATEGORYNAMESPACE_RE = "'(.*?)' is not in the category namespace!"#
- NOREDIRECTPAGE_RE = 'Page \\[\\[(.*?)\\]\\] is not a redirect page.'#
- abstract_class = False#
- cached = True#
- code = 'en'#
- family = 'wikipedia'#
- net = True#
- site = True#
- sites = {'wikipedia:en': {'code': 'en', 'family': 'wikipedia'}}#
Test isHiddenCategory.