jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1237141?usp=email )
Change subject: tests: deactivate TestScriptSimulate and TestScriptGenerator
for pytest
......................................................................
tests: deactivate TestScriptSimulate and TestScriptGenerator for pytest
There are too many problems with new 429 status code.
Bug: T414170
Change-Id: I9fed61249fe9e0fa56c8da5f9cac1f03b23d4632
---
M tests/script_tests.py
1 file changed, 10 insertions(+), 5 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/tests/script_tests.py b/tests/script_tests.py
index f2b983b..1c74152 100755
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -147,7 +147,8 @@
def collector() -> Iterator[str]:
"""Generate test fully qualified names from test classes."""
- for cls in (TestScriptHelp, ): # TestScriptSimulate, TestScriptGenerator:
+ test_cls = TestScriptHelp, TestScriptSimulate, TestScriptGenerator
+ for cls in test_cls[:1]: # ignore tests on unittest due to T414170
for name in cls._script_list:
name = '_' + name if name == 'login' else name
yield f'tests.script_tests.{cls.__name__}.test_{name}'
@@ -349,8 +350,8 @@
_script_list = filter_scripts(exclude_failed_dep=False)
-class XTestScriptSimulate(DefaultSiteTestCase, PwbTestCase,
- metaclass=ScriptTestMeta):
+class TestScriptSimulate(DefaultSiteTestCase, PwbTestCase,
+ metaclass=ScriptTestMeta):
"""Test cases for running scripts with -simulate.
@@ -360,6 +361,8 @@
scripts run in pwb can automatically login using the saved cookies.
"""
+ __test__ = False # Ignore this test on pytest due to T414170
+
login = True
_expected_failures = {
@@ -398,11 +401,13 @@
_script_list = filter_scripts(_allowed_failures)
-class XTestScriptGenerator(DefaultSiteTestCase, PwbTestCase,
- metaclass=ScriptTestMeta):
+class TestScriptGenerator(DefaultSiteTestCase, PwbTestCase,
+ metaclass=ScriptTestMeta):
"""Test cases for running scripts with a generator."""
+ __test__ = False # Ignore this test on pytest due to T414170
+
login = True
_expected_failures = {
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1237141?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: I9fed61249fe9e0fa56c8da5f9cac1f03b23d4632
Gerrit-Change-Number: 1237141
Gerrit-PatchSet: 2
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]