From 2062db2e0109f096260b956af3611bd0cf052c91 Mon Sep 17 00:00:00 2001 From: melwil Date: Thu, 23 Jan 2014 21:38:12 +0100 Subject: [PATCH] Fixed references to user.get_email() that should be user.email --- apps/feedback/mommy.py | 2 +- apps/feedback/tests.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/feedback/mommy.py b/apps/feedback/mommy.py index 16531cac8..40b845a4b 100644 --- a/apps/feedback/mommy.py +++ b/apps/feedback/mommy.py @@ -132,7 +132,7 @@ def get_users(feedback): @staticmethod def get_user_mails(not_responded): - return [str(user.get_email()) for user in not_responded] + return [user.email for user in not_responded] @staticmethod def get_link(feedback): diff --git a/apps/feedback/tests.py b/apps/feedback/tests.py index 66af26192..4c995962b 100644 --- a/apps/feedback/tests.py +++ b/apps/feedback/tests.py @@ -45,7 +45,7 @@ def setUp(self): def test_attendees(self): feedback_relation = FeedbackRelation.objects.get(pk=1) message = FeedbackMail.generate_message(feedback_relation) - user_mails = [str(user.get_email()) for user in User.objects.all()] + user_mails = [user.email for user in User.objects.all()] self.assertEqual(set(message.attended_mails), set(user_mails)) @@ -53,7 +53,7 @@ def test_attendees(self): feedback_relation.answered = [user1] message = FeedbackMail.generate_message(feedback_relation) - user_mails = [str(user.get_email()) for user in [User.objects.get(pk=2)]] + user_mails = [user.email for user in [User.objects.get(pk=2)]] self.assertEqual(set(message.attended_mails), set(user_mails)) feedback_relation = FeedbackRelation.objects.get(pk=2)