jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/615757 )

Change subject: [cleanup] rename ScenarioDefinedDefaultSiteTestCase to 
ScriptMainTestCase
......................................................................

[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(-)

Approvals:
  Matěj Suchánek: Looks good to me, approved
  jenkins-bot: Verified



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 https://gerrit.wikimedia.org/r/c/pywikibot/core/+/615757
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I927000a2ade26f8cc0c88721ae0a8ba467a883bc
Gerrit-Change-Number: 615757
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to