jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/678241 )
Change subject: [tests] Use TestCase for interwikimap_tests.py ......................................................................
[tests] Use TestCase for interwikimap_tests.py
DefaultSiteTestCase may fail because some related sites does not exists for a specific family file.
See https://travis-ci.org/github/wikimedia/pywikibot/jobs/766339595 for example
Change-Id: Iee0278d0cea9421242373ae759377f57848b4c1e --- M tests/interwikimap_tests.py 1 file changed, 6 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/interwikimap_tests.py b/tests/interwikimap_tests.py index 4298709..1da509c 100644 --- a/tests/interwikimap_tests.py +++ b/tests/interwikimap_tests.py @@ -10,11 +10,11 @@
from pywikibot.tools import suppress_warnings
-from tests.aspects import DefaultSiteTestCase +from tests.aspects import TestCase from tests import WARN_SITE_CODE
-class TestInterwikiMap(DefaultSiteTestCase): +class TestInterwikiMap(TestCase):
"""Test interwiki map and methods."""
@@ -106,10 +106,13 @@ self.assertTrue(True)
-class TestInterwikiMapPrefix(DefaultSiteTestCase): +class TestInterwikiMapPrefix(TestCase):
"""Test interwiki map and methods."""
+ family = 'wikipedia' + code = 'en' + def setUp(self): """Setup tests.""" super().setUp()