jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/810386 )

Change subject: [test] Test User.first_edit
......................................................................

[test] Test User.first_edit

Change-Id: I2af0a8d6bc4cb49bc4c651e361cf84f5cc80c7de
---
M tests/user_tests.py
1 file changed, 2 insertions(+), 2 deletions(-)

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



diff --git a/tests/user_tests.py b/tests/user_tests.py
index 054a446..2b35e1d 100755
--- a/tests/user_tests.py
+++ b/tests/user_tests.py
@@ -180,7 +180,8 @@
             self.skipTest('User {} has no contributions on site {}.'
                           .format(mysite.user(), mysite))
         self.assertLessEqual(len(uc), 10)
-        last = uc[0]
+        self.assertEqual(uc[0], user.last_edit)
+        self.assertEqual(uc[-1], user.first_edit)
         for contrib in uc:
             self.assertIsInstance(contrib, tuple)
             self.assertLength(contrib, 4)
@@ -189,7 +190,6 @@
             self.assertIsInstance(i, int)
             self.assertIsInstance(t, Timestamp)
             self.assertIsInstance(c, str)
-        self.assertEqual(last, user.last_edit)

     def test_logevents(self):
         """Test the User.logevents() method."""

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/810386
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: I2af0a8d6bc4cb49bc4c651e361cf84f5cc80c7de
Gerrit-Change-Number: 810386
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to