| valhallasw renamed this task from "test_newpages_default is failing on beta wikisource" to "test_newpages_default sometimes fails on beta sites due to lack of new pages". valhallasw removed a project: Patch-For-Review. valhallasw updated the task description. (Show Details) |
CHANGES TO TASK DESCRIPTION
24 feb 2017 on en.ws.beta: https://travis-ci.org/wikimedia/pywikibot-core/jobs/204884483#L2011
```lang=python
self = <tests.pagegenerators_tests.TestFactoryGenerator testMethod=test_newpages_default>
def test_newpages_default(self):
"""Test newpages generator."""
gf = pagegenerators.GeneratorFactory(site=self.site)
gf.handleArg('-newpages:60')
gen = gf.getCombinedGenerator()
self.assertIsNotNone(gen)
pages = set(gen)17 jun 2017 on zh.wp.beta: https://travis-ci.org/magul/pywikibot-core/jobs/244023949
> self.assertGThe easiest fix here is to creater(len(pages), 0) a new page on the wiki in question.
E AssertionError: 0 not greater than 0
```We should adapt the test case to clarify how to resolve the issue in this case.
```lang=python
self = <tests.pagegenerators_tests.TestFactoryGenerator testMethod=test_newpages_default>
def test_newpages_default(self):
"""Test newpages generator."""
gf = pagegenerators.GeneratorFactory(site=self.site)
gf.handleArg('-newpages:60')
gen = gf.getCombinedGenerator()
self.assertIsNotNone(gen)
pages = set(gen)17 jun 2017 on zh.wp.beta: https://travis-ci.org/magul/pywikibot-core/jobs/244023949
> self.assertGThe easiest fix here is to creater(len(pages), 0) a new page on the wiki in question.
E AssertionError: 0 not greater than 0
```We should adapt the test case to clarify how to resolve the issue in this case.
TASK DETAIL
EMAIL PREFERENCES
To: Dalba, valhallasw
Cc: gerritbot, Aklapper, pywikibot-bugs-list, Dalba, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Masti, Alchimista, Rxy
Cc: gerritbot, Aklapper, pywikibot-bugs-list, Dalba, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
