Update test_annual_summary.py

This commit is contained in:
Joachim 2021-12-21 15:57:58 +01:00
parent 37abf9531d
commit 8f0df388e6

View file

@ -37,13 +37,13 @@ class AnnualSummary(TestCase):
pages=300,
)
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.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