# HG changeset patch # User Mads Kiilerich # Date 2016-06-15 21:53:08 # Node ID 7253d9974bbeb72ae0e26f2055d3ed829450597f # Parent 653fee8db519f29a617cd8e98e7501b2bde5d38e tests: even smaller setup method refactor for readability 2ffd56e missed u3. diff --git a/kallithea/tests/models/test_notifications.py b/kallithea/tests/models/test_notifications.py --- a/kallithea/tests/models/test_notifications.py +++ b/kallithea/tests/models/test_notifications.py @@ -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()