jenkins-bot submitted this change.

View Change

Approvals: Matěj Suchánek: Looks good to me, approved jenkins-bot: Verified
[cleanup] rename ScenarioDefinedDefaultSiteTestCase to ScriptMainTestCase

ScriptMainTestCase is derived from ScenarioDefinedDefaultSiteTestCase
but is just an alias whereas ScenarioDefinedDefaultSiteTestCase is not
used elsewhere. Therefore rename ScenarioDefinedDefaultSiteTestCase to
ScriptMainTestCase.

Change-Id: I927000a2ade26f8cc0c88721ae0a8ba467a883bc
---
M tests/aspects.py
1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/tests/aspects.py b/tests/aspects.py
index 5c368a4..67e7eba 100644
--- a/tests/aspects.py
+++ b/tests/aspects.py
@@ -1209,13 +1209,13 @@
super(AlteredDefaultSiteTestCase, self).tearDown()


-class ScenarioDefinedDefaultSiteTestCase(AlteredDefaultSiteTestCase):
+class ScriptMainTestCase(AlteredDefaultSiteTestCase):

"""Tests that depend on the default site being set to the test site."""

def setUp(self):
"""Prepare the environment for running main() in a script."""
- super(ScenarioDefinedDefaultSiteTestCase, self).setUp()
+ super().setUp()
site = self.get_site()
pywikibot.config.family = site.family
pywikibot.config.mylang = site.code
@@ -1369,13 +1369,6 @@
.format(cls.__name__, cls.get_site()))


-class ScriptMainTestCase(ScenarioDefinedDefaultSiteTestCase):
-
- """Test running a script main()."""
-
- pass
-
-
class PwbTestCase(TestCase):

"""

To view, visit change 615757. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I927000a2ade26f8cc0c88721ae0a8ba467a883bc
Gerrit-Change-Number: 615757
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged