Dalba has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/344668 )
Change subject: paraminfo_tests.py: Add 'text/x-collabkit' as a new content format ...................................................................... paraminfo_tests.py: Add 'text/x-collabkit' as a new content format test_content_format should expect 'text/x-collabkit' as a new content format when it finds CollaborationKit extension on a wiki. Bug: T161223 Change-Id: I40fe1555bda228821920cb619ed45d0bdc1890e7 --- M tests/paraminfo_tests.py 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/68/344668/1 diff --git a/tests/paraminfo_tests.py b/tests/paraminfo_tests.py index 8a8d776..2899314 100644 --- a/tests/paraminfo_tests.py +++ b/tests/paraminfo_tests.py @@ -127,6 +127,9 @@ if isinstance(self.site, DataSite): # It is not clear when this format has been added, see T129281. base.append('application/vnd.php.serialized') + extensions = set(e['name'] for e in self.site.siteinfo['extensions']) + if 'CollaborationKit' in extensions: + base.append('text/x-collabkit') self._check_param_values(self.site, 'edit', 'contentformat', base) self._check_param_values(self.site, 'parse', 'contentformat', base) -- To view, visit https://gerrit.wikimedia.org/r/344668 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I40fe1555bda228821920cb619ed45d0bdc1890e7 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