adding mocks for views tests
This commit is contained in:
parent
272685f27d
commit
6b10e487b6
16 changed files with 132 additions and 120 deletions
|
@ -100,7 +100,7 @@ class GoalViews(TestCase):
|
|||
'post-status': True
|
||||
})
|
||||
request.user = self.local_user
|
||||
with patch('bookwyrm.broadcast.broadcast_task.delay'):
|
||||
with patch('bookwyrm.models.activitypub_mixin.broadcast_task.delay'):
|
||||
view(request, self.local_user.localname, 2020)
|
||||
|
||||
goal = models.AnnualGoal.objects.get()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue