jenkins-bot has submitted this change and it was merged.
Change subject: Use RecentChangesTestCase for two tests using RC ......................................................................
Use RecentChangesTestCase for two tests using RC
RecentChangesTestCase avoids running RecentChanges related tests on sites which do not have a regular flow of RecentChanges data.
Change-Id: Idf0efff747b402a7c604f5decc3c3d9fe2b49b57 --- M tests/pagegenerators_tests.py 1 file changed, 4 insertions(+), 3 deletions(-)
Approvals: John Vandenberg: Looks good to me, but someone else must approve XZise: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py index 3f9cb4f..5c5e207 100755 --- a/tests/pagegenerators_tests.py +++ b/tests/pagegenerators_tests.py @@ -828,8 +828,8 @@ self.assertTrue(all(isinstance(item, pywikibot.Page) for item in pages))
-class PageGeneratorIntersectTestCase(DefaultSiteTestCase, - GeneratorIntersectTestCase): +class PageGeneratorIntersectTestCase(GeneratorIntersectTestCase, + RecentChangesTestCase):
"""Page intersect_generators test cases."""
@@ -846,7 +846,8 @@ pagegenerators.RecentChangesPageGenerator(site=site, total=200)])
-class EnglishWikipediaPageGeneratorIntersectTestCase(GeneratorIntersectTestCase): +class EnWikipediaPageGeneratorIntersectTestCase(GeneratorIntersectTestCase, + RecentChangesTestCase):
"""Page intersect_generators test cases."""
pywikibot-commits@lists.wikimedia.org