changeset 5973:7253d9974bbe

tests: even smaller setup method refactor for readability 2ffd56e missed u3.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 15 Jun 2016 21:53:08 +0200
parents 653fee8db519
children c7dc1c7ace67
files kallithea/tests/models/test_notifications.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/models/test_notifications.py	Wed Jun 15 21:09:03 2016 +0200
+++ b/kallithea/tests/models/test_notifications.py	Wed Jun 15 21:53:08 2016 +0200
@@ -25,12 +25,12 @@
         Session().commit()
         self.u2 = u2.user_id
 
-        self.u3 = UserModel().create_or_update(username=u'u3',
+        u3 = UserModel().create_or_update(username=u'u3',
                                         password=u'qweqwe',
                                         email=u'u3@example.com',
                                         firstname=u'u3', lastname=u'u3')
         Session().commit()
-        self.u3 = self.u3.user_id
+        self.u3 = u3.user_id
 
         self.remove_all_notifications()
         assert [] == Notification.query().all()