jenkins-bot has submitted this change and it was merged. (
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(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
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: merged
Gerrit-Change-Id: I40fe1555bda228821920cb619ed45d0bdc1890e7
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>