Maverick has uploaded a new change for review.
https://gerrit.wikimedia.org/r/181720
Change subject: Bug: T77966 Skip test_new_mode if the mw version < 1.23. Bug:
T77966
......................................................................
Bug: T77966
Skip test_new_mode if the mw version < 1.23.
Bug: T77966
Change-Id: I13bb53c04c6a49828b99f268ba7fed5e41c0f9bc
---
M tests/api_tests.py
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/20/181720/1
diff --git a/tests/api_tests.py b/tests/api_tests.py
index bf43d3a..a1347fe 100644
--- a/tests/api_tests.py
+++ b/tests/api_tests.py
@@ -229,6 +229,8 @@
def test_new_mode(self):
site = self.get_site()
+ if MediaWikiVersion(site.version()) < MediaWikiVersion('1.23'):
+ raise unittest.SkipTest("version %s doesn't support the new
paraminfo api" % str(site.version()))
pi = api.ParamInfo(site, modules_only_mode=True)
pi.fetch(['info'])
self.assertIn('info', pi)
--
To view, visit https://gerrit.wikimedia.org/r/181720
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I13bb53c04c6a49828b99f268ba7fed5e41c0f9bc
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Maverick <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits