Page MenuHomePhabricator

MediaWikiKnownTypesTestCase.test_content_model is failing on traivis
Closed, ResolvedPublic

Description

https://travis-ci.org/wikimedia/pywikibot/jobs/355547526#L4476

________________ MediaWikiKnownTypesTestCase.test_content_model ________________
self = <tests.paraminfo_tests.MediaWikiKnownTypesTestCase testMethod=test_content_model>
    def test_content_model(self):
        """Test content model."""
        base = [
            'wikitext',
            'javascript',
            'css',
            'text',
        ]
        wmf = [
            'MassMessageListContent',
            'SecurePoll',
            'flow-board',
            'Scribunto',
            'JsonSchema',
        ]
        if MediaWikiVersion(self.site.version()) >= MediaWikiVersion('1.24'):
            base.append('json')
    
        self._check_param_subset(self.site, 'edit', 'contentmodel', base)
        self._check_param_subset(self.site, 'parse', 'contentmodel', base)
    
        if isinstance(self.site.family, WikimediaFamily):
            # T151151 - en.wiki uninstalled Flow extension:
            if self.site.family == 'wikipedia' and self.site.code == 'en':
                wmf.remove('flow-board')
>           self._check_param_subset(self.site, 'parse', 'contentmodel', wmf)
tests/paraminfo_tests.py:164: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/paraminfo_tests.py:48: in _check_param_subset
    self.assertLessEqual(set(expected), set(values))
E   AssertionError: {'flow-board', 'SecurePoll', 'Scribunto', 'MassMessageListContent', 'JsonSchema'} not less than or equal to {'MassMessageListContent', 'Scribunto', 'javascript', 'JsonSchema', 'GadgetDefinition', 'css', 'SecurePoll', 'wikitext', 'text', 'json'}

Event Timeline

Dalba triaged this task as High priority.Mar 21 2018, 4:28 PM

Apparently flow-board has been removed from zh.wikisource and some other wikis. (T188812)

Change 421066 had a related patch set uploaded (by Dalba; owner: Dalba):
[pywikibot/core@master] paraminfo_tests.py: Remove flow-board from expected content models

https://gerrit.wikimedia.org/r/421066

Change 421066 merged by jenkins-bot:
[pywikibot/core@master] paraminfo_tests.py: Remove flow-board from expected content models

https://gerrit.wikimedia.org/r/421066