This commit is contained in:
Joachim 2021-12-21 15:55:51 +01:00
parent c13e7479c3
commit 37abf9531d

View file

@ -36,13 +36,14 @@ class AnnualSummary(TestCase):
parent_work=self.work,
pages=300,
)
self.review = models.Review.objects.create(
name="Review name",
content="test content",
rating=3.0,
user=self.local_user,
book=self.book,
)
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.apply_async"):
self.review = models.Review.objects.create(
name="Review name",
content="test content",
rating=3.0,
user=self.local_user,
book=self.book,
)
self.anonymous_user = AnonymousUser
self.anonymous_user.is_authenticated = False