From 47097c6b32faf86c5881680f923a467180c6cd74 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 31 Jan 2021 12:10:10 -0800 Subject: [PATCH] updates user rating tag --- bookwyrm/tests/test_templatetags.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bookwyrm/tests/test_templatetags.py b/bookwyrm/tests/test_templatetags.py index d315144f6..98e401ee2 100644 --- a/bookwyrm/tests/test_templatetags.py +++ b/bookwyrm/tests/test_templatetags.py @@ -33,18 +33,18 @@ class TemplateTags(TestCase): bookwyrm_tags.dict_key(test_dict, 'c'), 0) - def test_get_rating(self): + def test_get_user_rating(self): ''' get a user's most recent rating of a book ''' models.Review.objects.create( user=self.user, book=self.book, rating=3) self.assertEqual( - bookwyrm_tags.get_rating(self.book, self.user), 3) + bookwyrm_tags.get_user_rating(self.book, self.user), 3) - def test_get_rating_doesnt_exist(self): + def test_get_user_rating_doesnt_exist(self): ''' there is no rating available ''' self.assertEqual( - bookwyrm_tags.get_rating(self.book, self.user), 0) + bookwyrm_tags.get_user_rating(self.book, self.user), 0) def test_get_user_identifer_local(self):