jenkins-bot has submitted this change and it was merged.

Change subject: Check only standard watchlist flags
......................................................................


Check only standard watchlist flags

Remove ORES extension oresreview flag from test at all.
Check ony for standard subset of watchlist flags.

Bug: T151156
Change-Id: I0c004bce83b2d09b7772da6029d3422959dac300
---
M tests/paraminfo_tests.py
1 file changed, 1 insertion(+), 12 deletions(-)

Approvals:
  Dalba: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/paraminfo_tests.py b/tests/paraminfo_tests.py
index b72a0ac..2e4bb18 100644
--- a/tests/paraminfo_tests.py
+++ b/tests/paraminfo_tests.py
@@ -81,20 +81,9 @@
         if MediaWikiVersion(self.site.version()) >= MediaWikiVersion('1.24'):
             types.append('unread')
 
-        ores_installed = {
-            'wikipedia': ('en', 'fa', 'nl', 'pl', 'pt', 'ru', 'tr'),
-            'wikidata': ('en',),
-        }
-
-        if (
-            self.site.family in ores_installed and
-            self.site.lang in ores_installed[self.site.family]
-        ):
-            types.append('oresreview')
-
         known = types + ['!%s' % item for item in types]
 
-        self._check_param_values(self.site, 'query+watchlist', 'show', known)
+        self._check_param_subset(self.site, 'query+watchlist', 'show', known)
 
     def test_watchlist_type(self):
         """Test watchlist type."""

-- 
To view, visit https://gerrit.wikimedia.org/r/324242
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0c004bce83b2d09b7772da6029d3422959dac300
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Magul <[email protected]>
Gerrit-Reviewer: Dalba <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Lokal Profil <[email protected]>
Gerrit-Reviewer: Magul <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to