jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1236370?usp=email )

Change subject: tests: deactivate TestScriptSimulate and TestScriptGenerator
......................................................................

tests: deactivate TestScriptSimulate and TestScriptGenerator

There are too many problems with new 429 status code.

Bug: T414170
Change-Id: I41a7943ae56a375c2a8a5e0f1b2245c85a020698
---
M tests/script_tests.py
1 file changed, 6 insertions(+), 6 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved




diff --git a/tests/script_tests.py b/tests/script_tests.py
index 789f90c..f2b983b 100755
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -147,7 +147,7 @@

 def collector() -> Iterator[str]:
     """Generate test fully qualified names from test classes."""
-    for cls in TestScriptHelp, TestScriptSimulate, TestScriptGenerator:
+    for cls in (TestScriptHelp, ):  # TestScriptSimulate, TestScriptGenerator:
         for name in cls._script_list:
             name = '_' + name if name == 'login' else name
             yield f'tests.script_tests.{cls.__name__}.test_{name}'
@@ -218,7 +218,7 @@
                     do_timeout = self._timeout
                 else:
                     do_timeout = script_name in self._timeout
-                timeout = 15 if do_timeout else None
+                timeout = 10 if do_timeout else None

                 stdout, error = None, None
                 if self._results:
@@ -349,8 +349,8 @@
     _script_list = filter_scripts(exclude_failed_dep=False)


-class TestScriptSimulate(DefaultSiteTestCase, PwbTestCase,
-                         metaclass=ScriptTestMeta):
+class XTestScriptSimulate(DefaultSiteTestCase, PwbTestCase,
+                          metaclass=ScriptTestMeta):

     """Test cases for running scripts with -simulate.

@@ -398,8 +398,8 @@
     _script_list = filter_scripts(_allowed_failures)


-class TestScriptGenerator(DefaultSiteTestCase, PwbTestCase,
-                          metaclass=ScriptTestMeta):
+class XTestScriptGenerator(DefaultSiteTestCase, PwbTestCase,
+                           metaclass=ScriptTestMeta):

     """Test cases for running scripts with a generator."""


--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1236370?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: I41a7943ae56a375c2a8a5e0f1b2245c85a020698
Gerrit-Change-Number: 1236370
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]

Reply via email to