Xqt added a comment.
In T422369#11789718 <https://phabricator.wikimedia.org/T422369#11789718>, @Jdforrester-WMF wrote: > Two questions come to mind immediately: > > - How are these tests run? They don't show up for me when running `tox`. > - How did these tests start failing now, but passed CI when the patch was written? These tests run on GitHub Actions, not on Jenkins. On GitHub, some tests are executed against live wikis, whereas Jenkins test only runs a subset of tests, mostly against the testwiki. That’s why these tests may not appear in Jenkins CI tests. The GitHub action matrix can be found on GitHub action workflows <https://gerrit.wikimedia.org/r/plugins/gitiles/pywikibot/core/+/93282c3408a8571ad9c0eb4dee1cbd95032f1c1c/.github/workflows>. You can run test locally like `py -3.13 -m pwb -code:en page_tests -v TestPageObject.testLinks` where `pwb` is the Pywikibot wrapper to allow global options like `-code` `-code` sets the default site for tests which is en-wiki here instead of tests-wiki `page_tests` is the test file `TestPageObject` is the test class if you don't want run all tests of a test file `testLinks` is a test method of the given class if you don't want to run all methods of a class See also: https://doc.wikimedia.org/pywikibot/master/tests_ref/index.html TASK DETAIL https://phabricator.wikimedia.org/T422369 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
