mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 21:11:16 +00:00
Updates unit tests
This commit is contained in:
parent
fc3b609ada
commit
fb3c7205af
1 changed files with 4 additions and 2 deletions
|
@ -40,7 +40,8 @@ class RatingTags(TestCase):
|
|||
|
||||
@patch("bookwyrm.models.activitypub_mixin.broadcast_task.apply_async")
|
||||
def test_get_rating(self, *_):
|
||||
"""privacy filtered rating"""
|
||||
"""privacy filtered rating. Commented versions are how it ought to work with
|
||||
subjective ratings, which are currenly not used for performance reasons."""
|
||||
# follows-only: not included
|
||||
models.ReviewRating.objects.create(
|
||||
user=self.remote_user,
|
||||
|
@ -48,7 +49,8 @@ class RatingTags(TestCase):
|
|||
book=self.book,
|
||||
privacy="followers",
|
||||
)
|
||||
self.assertEqual(rating_tags.get_rating(self.book, self.local_user), 0)
|
||||
# self.assertEqual(rating_tags.get_rating(self.book, self.local_user), 0)
|
||||
self.assertEqual(rating_tags.get_rating(self.book, self.local_user), 5)
|
||||
|
||||
# public: included
|
||||
models.ReviewRating.objects.create(
|
||||
|
|
Loading…
Reference in a new issue