jenkins-bot has submitted this change and it was merged.
Change subject: Test: pass test on wikis with very low activity ......................................................................
Test: pass test on wikis with very low activity
Change-Id: I2c3250e14b4d3e3234c8ef308a4256a5d807d04c --- M tests/pagegenerators_tests.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py index da4c390..48d139a 100755 --- a/tests/pagegenerators_tests.py +++ b/tests/pagegenerators_tests.py @@ -205,7 +205,8 @@ gf.handleArg('-newpages') gen = gf.getCombinedGenerator() pages = set(gen) - self.assertEqual(len(pages), 60) + self.assertGreater(len(pages), 0) + self.assertLessEqual(len(pages), 60)
def test_newpages_ns_default(self): gf = pagegenerators.GeneratorFactory(site=self.site)
pywikibot-commits@lists.wikimedia.org