jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/774846 )
Change subject: [tests] Test is_locked method ......................................................................
[tests] Test is_locked method
Change-Id: Ia07e2541f409dd13613cd2d400f1e318cef1dd7a --- M tests/user_tests.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/user_tests.py b/tests/user_tests.py index aed7a6e..054a446 100755 --- a/tests/user_tests.py +++ b/tests/user_tests.py @@ -58,7 +58,8 @@ self.assertIsInstance(user.registration(), pywikibot.Timestamp) self.assertGreater(user.editCount(), 0) self.assertFalse(user.is_blocked()) - # self.assertTrue(user.isEmailable()) + self.assertFalse(user.is_locked()) + self.assertTrue(user.isEmailable()) self.assertEqual(user.gender(), 'unknown') self.assertIn('userid', user.getprops()) self.assertEqual(user.getprops()['userid'], 287832)
pywikibot-commits@lists.wikimedia.org