Dalba created this task.
Dalba added projects: Pywikibot-core, Pywikibot-tests.
Herald added subscribers: pywikibot-bugs-list, Cosine02, Aklapper.

TASK DESCRIPTION

https://travis-ci.org/wikimedia/pywikibot/jobs/399543990#L1483

__________________ TestFactoryGenerator.test_newpages_default __________________
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)
        self.assertLessEqual(len(pages), 60)
    
        newpages_url = self.site.base_url(self.site.path() + '?title=Special:NewPages&uselang=en')
        failure_message = 'No new pages returned by -newpages. ' \
            'If this is the only failure, check whether {url} contains any pages. ' \
            'If not, create a new page on the site to make the test pass again.' \
            .format(url=newpages_url)
    
>       self.assertGreater(len(pages), 0, failure_message)
E       AssertionError: 0 not greater than 0 : No new pages returned by -newpages. If this is the only failure, check whether https://zh.wikipedia.beta.wmflabs.org/w/index.php?title=Special:NewPages&uselang=en contains any pages. If not, create a new page on the site to make the test pass again.
tests/pagegenerators_tests.py:969: AssertionError

TASK DETAIL
https://phabricator.wikimedia.org/T198722

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dalba
Cc: Aklapper, Cosine02, pywikibot-bugs-list, Dalba, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to