Mercurial > public > sg101
diff forums/tests/test_views.py @ 789:9e803323a0d0
Removing AUTH_PROFILE_MODULE and get_profile().
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 23 May 2014 15:10:11 -0500 |
parents | 8789299c75b1 |
children |
line wrap: on
line diff
--- a/forums/tests/test_views.py Sun May 18 17:43:37 2014 -0500 +++ b/forums/tests/test_views.py Fri May 23 15:10:11 2014 -0500 @@ -131,5 +131,8 @@ self.assertEqual(post.user.pk, self.user.pk) self.assertEqual(topic.post_count, 3) - profile = self.user.get_profile() + # our cached copy of the profile is out of date; need to refetch from + # the database + user = User.objects.get(username=self.username) + profile = user.profile self.assertEqual(profile.forum_post_count, 3)