jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/621863 )
Change subject: [tests] Test expected result in PatrolTestCase ......................................................................
[tests] Test expected result in PatrolTestCase
Change-Id: I12163fa84ea21820c330f1c796974ccc043020d0 --- M tests/site_tests.py 1 file changed, 3 insertions(+), 1 deletion(-)
Approvals: D3r1ck01: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/site_tests.py b/tests/site_tests.py index 1467d84..1f1abf2 100644 --- a/tests/site_tests.py +++ b/tests/site_tests.py @@ -2214,6 +2214,7 @@ if mysite.mw_version >= '1.22': params['revid'] = [0, 1]
+ raised = False try: # no such rcid, revid or too old revid list(mysite.patrol(**params)) @@ -2222,7 +2223,8 @@ self.skipTest(error) except pywikibot.Error: # expected result - pass + raised = True + self.assertTrue(raised, msg='pywikibot.Error not raised')
class SiteRandomTestCase(DefaultSiteTestCase):
pywikibot-commits@lists.wikimedia.org