jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1323808?usp=email )
Change subject: tests: Rename AlteredDefaultSiteTestCase to SiteConfigTestCase
......................................................................
tests: Rename AlteredDefaultSiteTestCase to SiteConfigTestCase
Bug: T434389
Change-Id: I99c302cdf22f30ac152b846476620ce87df45867
---
M tests/aspects.py
M tests/interwiki_link_tests.py
M tests/interwikidata_tests.py
M tests/link_tests.py
M tests/site_tests.py
5 files changed, 10 insertions(+), 11 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/tests/aspects.py b/tests/aspects.py
index da6e793..fb23848 100644
--- a/tests/aspects.py
+++ b/tests/aspects.py
@@ -1353,7 +1353,7 @@
}
-class AlteredDefaultSiteTestCase(TestCase):
+class SiteConfigTestCase(TestCase):
"""Save and restore the config.mylang and config.family."""
@@ -1370,7 +1370,7 @@
super().tearDown()
-class ScriptMainTestCase(AlteredDefaultSiteTestCase):
+class ScriptMainTestCase(SiteConfigTestCase):
"""Tests that depend on the default site being set to the test site."""
diff --git a/tests/interwiki_link_tests.py b/tests/interwiki_link_tests.py
index 47173e3..8049df5 100755
--- a/tests/interwiki_link_tests.py
+++ b/tests/interwiki_link_tests.py
@@ -13,11 +13,10 @@
from pywikibot import config
from pywikibot.exceptions import InvalidTitleError
from pywikibot.page import Link
-from tests.aspects import AlteredDefaultSiteTestCase as LinkTestCase
-from tests.aspects import TestCase
+from tests.aspects import SiteConfigTestCase, TestCase
-class TestPartiallyQualifiedLinkDifferentCodeParser(LinkTestCase):
+class TestPartiallyQualifiedLinkDifferentCodeParser(SiteConfigTestCase):
"""Tests for interwiki links to local sites."""
diff --git a/tests/interwikidata_tests.py b/tests/interwikidata_tests.py
index 70356fe..cde9ce7 100755
--- a/tests/interwikidata_tests.py
+++ b/tests/interwikidata_tests.py
@@ -14,7 +14,7 @@
import pywikibot
from pywikibot import Link
from scripts import interwikidata
-from tests.aspects import AlteredDefaultSiteTestCase, SiteAttributeTestCase
+from tests.aspects import SiteAttributeTestCase, SiteConfigTestCase
from tests.utils import empty_sites
@@ -35,7 +35,7 @@
return
-class TestInterwikidataBot(AlteredDefaultSiteTestCase, SiteAttributeTestCase):
+class TestInterwikidataBot(SiteConfigTestCase, SiteAttributeTestCase):
"""Test Interwikidata."""
diff --git a/tests/link_tests.py b/tests/link_tests.py
index 8e560d4..c68df20 100755
--- a/tests/link_tests.py
+++ b/tests/link_tests.py
@@ -16,8 +16,8 @@
from pywikibot.page import Link, Page, SiteLink
from pywikibot.site import Namespace
from tests.aspects import (
- AlteredDefaultSiteTestCase,
DefaultSiteTestCase,
+ SiteConfigTestCase,
TestCase,
WikimediaDefaultSiteTestCase,
unittest,
@@ -232,7 +232,7 @@
# ---- The first set of tests are explicit links, starting with a ':'.
-class LinkTestCase(AlteredDefaultSiteTestCase):
+class LinkTestCase(SiteConfigTestCase):
"""Cached API test for link tests."""
diff --git a/tests/site_tests.py b/tests/site_tests.py
index 3f8afe3..dac3333 100755
--- a/tests/site_tests.py
+++ b/tests/site_tests.py
@@ -27,10 +27,10 @@
UnknownSiteError,
)
from tests.aspects import (
- AlteredDefaultSiteTestCase,
DefaultSiteTestCase,
DeprecationTestCase,
PatchingTestCase,
+ SiteConfigTestCase,
TestCase,
WikimediaDefaultSiteTestCase,
)
@@ -1163,7 +1163,7 @@
@unittest.skip('Skipping TimeoutError due to T431173')
-class TestProductionAndTestSite(AlteredDefaultSiteTestCase):
+class TestProductionAndTestSite(SiteConfigTestCase):
"""Test site without other production sites in its family."""
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1323808?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I99c302cdf22f30ac152b846476620ce87df45867
Gerrit-Change-Number: 1323808
Gerrit-PatchSet: 3
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]