jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
[bugfix] Enable langs which aren't used by wikimedia already

- Also use a set for lookup instead of a list

Bug: T224387
Change-Id: I97b1c872e05693916a63b848dfd858ab3a37ed7b
---
M tests/l10n_tests.py
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/l10n_tests.py b/tests/l10n_tests.py
index f461ee3..52bb522 100644
--- a/tests/l10n_tests.py
+++ b/tests/l10n_tests.py
@@ -103,7 +103,9 @@
def test_valid_sites(self):
"""Test whether language key has a corresponding site."""
codes = self.site.family.languages_by_size
- languages = [pywikibot.Site(code, self.family).lang for code in codes]
+ languages = {pywikibot.Site(code, self.family).lang for code in codes}
+ # langs used by foreign wikis
+ languages.update(('pt-br', 'zh-tw'))
for package in PACKAGES:
keys = i18n.twget_keys(package)
for key in keys:

To view, visit change 512623. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I97b1c872e05693916a63b848dfd858ab3a37ed7b
Gerrit-Change-Number: 512623
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)