jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/402415 )

Change subject: [TEST] Add tests to a bot account for User class
......................................................................


[TEST] Add tests to a bot account for User class

Bug: T60941
Change-Id: I91ddbe72f1b8d55cc3fe1c59e3937b25eed95551
---
M tests/user_tests.py
1 file changed, 6 insertions(+), 0 deletions(-)

Approvals:
  jenkins-bot: Verified
  Xqt: Looks good to me, approved



diff --git a/tests/user_tests.py b/tests/user_tests.py
index 1ffb626..ace810a 100644
--- a/tests/user_tests.py
+++ b/tests/user_tests.py
@@ -122,6 +122,12 @@
         self.assertIn('invalid', user.getprops())
         self.assertFalse(user.is_thankable)
 
+    def test_bot_user(self):
+        """Test bot user."""
+        user = User(self.site, 'Xqbot')
+        self.assertIn('bot', user.groups())
+        self.assertFalse(user.is_thankable)
+
 
 if __name__ == '__main__':  # pragma: no cover
     try:

-- 
To view, visit https://gerrit.wikimedia.org/r/402415
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I91ddbe72f1b8d55cc3fe1c59e3937b25eed95551
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Framawiki <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: Zoranzoki21 <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to