jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
paraminfo_tests.py: Add 'form' and 'lexeme' to unsupported types

The feature has been released on production sites.

Bug: T194890
Change-Id: I4139f5a9e5307fe744abdee271ad5c6a43cbd146
---
M tests/paraminfo_tests.py
1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/tests/paraminfo_tests.py b/tests/paraminfo_tests.py
index 121e0ff..f815251 100644
--- a/tests/paraminfo_tests.py
+++ b/tests/paraminfo_tests.py
@@ -220,19 +220,11 @@

def test_entities(self):
"""Test known entities."""
- unsupported = []
-
- if self.site.sitename in ('test:test', 'wikidata:test'):
- unsupported = ['form', 'lexeme'] # T194890
-
- supported = ['item', 'property']
- known = supported + unsupported
- if unsupported:
- self._check_param_superset(
- self.repo, 'wbsearchentities', 'type', known)
- else:
- self._check_param_values(
- self.repo, 'wbsearchentities', 'type', known)
+ unsupported = {'form', 'lexeme'} # T195435
+ supported = {'item', 'property'}
+ known = supported | unsupported
+ self._check_param_superset(
+ self.repo, 'wbsearchentities', 'type', known)

# Missing datatypes won't crash pywikibot but should be noted
def test_datatypes(self):

To view, visit change 434843. To unsubscribe, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I4139f5a9e5307fe744abdee271ad5c6a43cbd146
Gerrit-Change-Number: 434843
Gerrit-PatchSet: 3
Gerrit-Owner: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot <>