jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/770469 )
Change subject: [tests] Make github action pass
......................................................................
[tests] Make github action pass
- solve bug of skipTest in setUpClass;
the class must be passed to that method
- add some scripts to _allowed_failures for TestScriptGenerator tests
Change-Id: I6f2c62d61bb6201e6393a6af574bedd738533a67
---
M tests/script_tests.py
M tests/site_tests.py
2 files changed, 5 insertions(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/script_tests.py b/tests/script_tests.py
index c11c7d8..82b12eb 100755
--- a/tests/script_tests.py
+++ b/tests/script_tests.py
@@ -425,7 +425,10 @@
}
_allowed_failures = [
+ 'coordinate_import',
+ 'illustrate_wikidata',
'newitem',
+ 'solve_disambiguation',
]
_arguments = '-simulate -page:Foo -always'
diff --git a/tests/site_tests.py b/tests/site_tests.py
index 3bdf8e6..085b4eb 100755
--- a/tests/site_tests.py
+++ b/tests/site_tests.py
@@ -2359,7 +2359,8 @@
super().setUpClass()
site = cls.get_site()
if site.family.name in ('wpbeta', 'wsbeta'):
- cls.skipTest('Skipping test on {} due to T282602'.format(site))
+ cls.skipTest(cls,
+ 'Skipping test on {} due to T282602' .format(site))
def test_unlimited_small_step(self):
"""Test site.randompages() continuation.
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/770469
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: I6f2c62d61bb6201e6393a6af574bedd738533a67
Gerrit-Change-Number: 770469
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged