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
pywikibot-commits@lists.wikimedia.org