Changeset - 7253d9974bbe
[Not reviewed]
default
0 1 0
Mads Kiilerich - 9 years ago 2016-06-15 21:53:08
madski@unity3d.com
tests: even smaller setup method refactor for readability

2ffd56e missed u3.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/models/test_notifications.py
Show inline comments
 
@@ -25,12 +25,12 @@ class TestNotifications(TestController):
 
        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()
0 comments (0 inline, 0 general)