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 = {
pywikibot-commits@lists.wikimedia.org