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

TASK DESCRIPTION

https://travis-ci.org/wikimedia/pywikibot/jobs/362524875#L4033

______________ TestValidTemplate.test_archivebot_archiveheader_io ______________
self = <tests.l10n_tests.TestValidTemplate testMethod=test_archivebot_archiveheader_io>
    def test_template(self):
        """Test validity of template."""
        lang = site.lang
        if lang not in keys:
            return
        msg = i18n.twtranslate(lang, package, fallback=False)
        if msg:
            # check whether the message contains a template
            templates = extract_templates_and_params_regex_simple(msg)
            self.assertIsInstance(templates, list)
            self.assertGreater(len(templates), 0)
    
            # known problem
            if site.code == 'simple':
                raise unittest.SkipTest(
                    "'simple' wiki has 'en' language code but "
                    "missing template. Must be solved by the "
                    "corresponding script.")
            # check whether template exists
            title = templates[0][0]
            page = pywikibot.Page(site, title, ns=10)
>           self.assertTrue(page.exists())
E           AssertionError: False is not true
tests/l10n_tests.py:52: AssertionError
_________ TestValidTemplate.test_redirect_broken_redirect_template_io __________
self = <tests.l10n_tests.TestValidTemplate testMethod=test_redirect_broken_redirect_template_io>
    def test_template(self):
        """Test validity of template."""
        lang = site.lang
        if lang not in keys:
            return
        msg = i18n.twtranslate(lang, package, fallback=False)
        if msg:
            # check whether the message contains a template
            templates = extract_templates_and_params_regex_simple(msg)
            self.assertIsInstance(templates, list)
            self.assertGreater(len(templates), 0)
    
            # known problem
            if site.code == 'simple':
                raise unittest.SkipTest(
                    "'simple' wiki has 'en' language code but "
                    "missing template. Must be solved by the "
                    "corresponding script.")
            # check whether template exists
            title = templates[0][0]
            page = pywikibot.Page(site, title, ns=10)
>           self.assertTrue(page.exists())
E           AssertionError: False is not true

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

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

To: Dalba
Cc: Aklapper, pywikibot-bugs-list, Dalba, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to