jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1314811?usp=email )
Change subject: tests: Recover TestScriptSimulate and TestScriptGenerator
......................................................................
tests: Recover TestScriptSimulate and TestScriptGenerator
Restore TestScriptSimulate and TestScriptGenerator after
tests are running through WMCS SOCKS proxy on GitHub.
Bug: T414170
Change-Id: Ib5bf5c1f6d3b6d209b8dc55967f7f1faf602ad3a
---
M tests/script_tests.py
1 file changed, 1 insertion(+), 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 1c905a7..442be46 100755
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -147,8 +147,7 @@
def collector() -> Iterator[str]:
"""Generate test fully qualified names from test classes."""
- test_cls = TestScriptHelp, TestScriptSimulate, TestScriptGenerator
- for cls in test_cls[:1]: # ignore tests on unittest due to T414170
+ 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}'
@@ -361,8 +360,6 @@
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 = {
@@ -406,8 +403,6 @@
"""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/+/1314811?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: Ib5bf5c1f6d3b6d209b8dc55967f7f1faf602ad3a
Gerrit-Change-Number: 1314811
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]