jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/617078 )
Change subject: [bugfix] Ignore experimental content format at test wiki ......................................................................
[bugfix] Ignore experimental content format at test wiki
Bug: T259100 Change-Id: I867aefd51d67fece1bbe24dbed7b7de11a20c23a --- M tests/paraminfo_tests.py 1 file changed, 7 insertions(+), 4 deletions(-)
Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/paraminfo_tests.py b/tests/paraminfo_tests.py index f28eafe..894cb3b 100644 --- a/tests/paraminfo_tests.py +++ b/tests/paraminfo_tests.py @@ -5,8 +5,6 @@ # # Distributed under the terms of the MIT license. # -from __future__ import absolute_import, division, unicode_literals - from pywikibot.family import WikimediaFamily from pywikibot.page import Claim, Property from pywikibot.site import DataSite @@ -137,8 +135,13 @@ 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) + for module in ('edit', 'parse'): + args = self.site, module, 'contentformat', base + with self.subTest(module=module): + if self.site.code == 'test': # T259100: ignore experimentals + self._check_param_subset(*args) + else: + self._check_param_values(*args)
def test_content_model(self): """Test content model."""
pywikibot-commits@lists.wikimedia.org