Dalba has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/339810 )

Change subject: pagegenerators_tests.py: Length of newpages can be zero
......................................................................

pagegenerators_tests.py: Length of newpages can be zero

Recent changes table holds only the edits of the last 30 days on Wikimedia
sites.[1] Beta Wikisource has not had any edits in this period, therefore
the test was failing.

[1]: https://goo.gl/JHwrD4

Bug: T159029
Change-Id: I8580a0475153faa76ad5964d473dacaaa6d40a6f
---
M tests/pagegenerators_tests.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/10/339810/1

diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py
index 133caf8..109c60a 100755
--- a/tests/pagegenerators_tests.py
+++ b/tests/pagegenerators_tests.py
@@ -851,7 +851,7 @@
         gen = gf.getCombinedGenerator()
         self.assertIsNotNone(gen)
         pages = set(gen)
-        self.assertGreater(len(pages), 0)
+        self.assertGreaterEqual(len(pages), 0)
         self.assertLessEqual(len(pages), 60)
 
     def test_newpages_ns_default(self):

-- 
To view, visit https://gerrit.wikimedia.org/r/339810
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8580a0475153faa76ad5964d473dacaaa6d40a6f
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <dalba.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to