jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
Add beta site to wikisource

This ensures the repo knows of a safe site to use for ProofreadPage
edit test.

Change-Id: I6f0203e7e0d7860c51c4b8086a4bf657607a9429
---
M pywikibot/families/wikisource_family.py
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pywikibot/families/wikisource_family.py b/pywikibot/families/wikisource_family.py
index 2a4218d..b7f3b8a 100644
--- a/pywikibot/families/wikisource_family.py
+++ b/pywikibot/families/wikisource_family.py
@@ -36,6 +36,9 @@
'bs', 'sah', 'gl', 'lt', 'sk', 'eu', 'cy', 'pa', 'zh-min-nan', 'fo',
]

+ # Sites we want to edit but not count as real languages
+ test_codes = ['beta']
+
category_redirect_templates = {
'_default': (),
'ar': ('قالب:تحويل تصنيف',),
@@ -51,9 +54,10 @@
def langs(cls):
cls.langs = super(Family, cls).langs
cls.langs['mul'] = cls.domain
+ cls.langs['beta'] = 'en.wikisource.beta.wmflabs.org'
return cls.langs

- languages_by_size.append('mul')
+ languages_by_size += ['mul', 'beta']

# Global bot allowed languages on
# https://meta.wikimedia.org/wiki/BPI#Current_implementation
@@ -91,6 +95,7 @@
'tr': [100],
'vi': [102],
'zh': [102],
+ 'beta': [102],
}

# Subpages for documentation.

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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I6f0203e7e0d7860c51c4b8086a4bf657607a9429
Gerrit-Change-Number: 510260
Gerrit-PatchSet: 1
Gerrit-Owner: Lokal Profil <andre.costa@wikimedia.se>
Gerrit-Reviewer: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Mpaa <mpaa.wiki@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: Zhuyifei1999 <zhuyifei1999@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)