XZise has submitted this change and it was merged. Change subject: Fix site setup in wikibase test ......................................................................
Fix site setup in wikibase test Also set nosetests to be verbose. Change-Id: I5c8ba42cae5fbd82a842b48489b4046b17297516 --- M tests/wikibase_tests.py M tox.ini 2 files changed, 4 insertions(+), 4 deletions(-) Approvals: XZise: Looks good to me, approved diff --git a/tests/wikibase_tests.py b/tests/wikibase_tests.py index fddfe33..f41640e 100644 --- a/tests/wikibase_tests.py +++ b/tests/wikibase_tests.py @@ -570,11 +570,11 @@ """ family = 'wikipedia' - lang = 'en' + code = 'en' def setUp(self): super(TestWriteNormalizeLang, self).setUp() - self.site = pywikibot.Site('en', 'wikipedia') + self.site = self.get_site() self.lang_out = {'en': 'foo'} def test_normalize_lang(self): diff --git a/tox.ini b/tox.ini index 42d799a..f37d458 100644 --- a/tox.ini +++ b/tox.ini @@ -70,13 +70,13 @@ [testenv:nose] setenv = PYWIKIBOT2_NO_USER_CONFIG=1 -commands = nosetests -a "!site,!net" tests +commands = nosetests -v -a "!site,!net" tests deps = nose [testenv:nose34] basepython = python3 setenv = PYWIKIBOT2_NO_USER_CONFIG=1 -commands = nosetests -a "!site,!net" tests +commands = nosetests -v -a "!site,!net" tests deps = nose six -- To view, visit https://gerrit.wikimedia.org/r/166733 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5c8ba42cae5fbd82a842b48489b4046b17297516 Gerrit-PatchSet: 2 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: John Vandenberg <jay...@gmail.com> Gerrit-Reviewer: Ladsgroup <ladsgr...@gmail.com> Gerrit-Reviewer: Merlijn van Deen <valhall...@arctus.nl> Gerrit-Reviewer: XZise <commodorefabia...@gmx.de> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits