jenkins-bot has submitted this change and it was merged. Change subject: Use oauth on beta en.wp and add beta en.ws ......................................................................
Use oauth on beta en.wp and add beta en.ws Using oauth on beta sites means the 'Pywikibot-test' password does not need to be used on those sites, which is discouraged as the beta sites are not secure environments. Adds oauth to beta en.wp to run user tests on the largest beta site, providing better coverage on beta sites without a password. Add beta en.ws to the text matrix, not running user tests, hoping to catch any bugs on beta when oauth is not enabled. One test fails on beta en.ws due to the interwiki map (T69931). Bug: T100797 Change-Id: I607ec16288540d8b6375114ea1ac18e50e6c4828 --- M .travis.yml M tests/site_tests.py 2 files changed, 10 insertions(+), 2 deletions(-) Approvals: John Vandenberg: Looks good to me, but someone else must approve XZise: Looks good to me, approved jenkins-bot: Verified diff --git a/.travis.yml b/.travis.yml index dc18b33..7a60b58 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,6 +53,9 @@ - if [[ $FAMILY == 'wpbeta' ]]; then python -m generate_family_file 'http://'$LANGUAGE'.wikipedia.beta.wmflabs.org/' 'wpbeta' 'y' ; fi + - if [[ $FAMILY == 'wsbeta' ]]; then + python -m generate_family_file 'http://'$LANGUAGE'.wikisource.beta.wmflabs.org/' 'wsbeta' 'y' ; + fi - python -W error::UserWarning -m generate_user_files -dir:~/.pywikibot/ -family:$FAMILY -lang:$LANGUAGE -v -user:"$PYWIKIBOT2_USERNAME" @@ -112,9 +115,11 @@ - python: '2.7_with_system_site_packages' # equivalent to virtualenv: system_site_packages: true env: LANGUAGE=he FAMILY=wikivoyage SITE_ONLY=1 - python: '2.7' - env: LANGUAGE=en FAMILY=wpbeta SITE_ONLY=1 - - python: '3.4' + env: LANGUAGE=en FAMILY=wpbeta SITE_ONLY=1 OAUTH_DOMAIN="en.wikipedia.beta.wmflabs.org" + - python: '3.3' env: LANGUAGE=zh FAMILY=wpbeta SITE_ONLY=1 OAUTH_DOMAIN="zh.wikipedia.beta.wmflabs.org" + - python: '3.4' + env: LANGUAGE=en FAMILY=wsbeta SITE_ONLY=1 - python: '2.7' env: LANGUAGE=wikia FAMILY=wikia PYWIKIBOT2_TEST_NO_RC=1 - python: '3.3' diff --git a/tests/site_tests.py b/tests/site_tests.py index 898f094..533c7b7 100644 --- a/tests/site_tests.py +++ b/tests/site_tests.py @@ -559,6 +559,9 @@ def testAllLinks(self): """Test the site.alllinks() method.""" + if self.site.family.name == 'wsbeta': + raise unittest.SkipTest('Test fails on betawiki; T69931') + mysite = self.get_site() fwd = list(mysite.alllinks(total=10)) self.assertLessEqual(len(fwd), 10) -- To view, visit https://gerrit.wikimedia.org/r/233341 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I607ec16288540d8b6375114ea1ac18e50e6c4828 Gerrit-PatchSet: 3 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: John Vandenberg <jay...@gmail.com> Gerrit-Reviewer: John Vandenberg <jay...@gmail.com> Gerrit-Reviewer: Ladsgroup <ladsgr...@gmail.com> Gerrit-Reviewer: XZise <commodorefabia...@gmx.de> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ Pywikibot-commits mailing list Pywikibot-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits