jenkins-bot submitted this change.
[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.