Fixes mocks syntax
This commit is contained in:
parent
72d5238590
commit
227b72eaf9
8 changed files with 58 additions and 59 deletions
|
@ -378,7 +378,7 @@ class StatusViews(TestCase):
|
|||
status.refresh_from_db()
|
||||
self.assertFalse(status.deleted)
|
||||
|
||||
def test_handle_delete_status_moderator(self, mock, _):
|
||||
def test_handle_delete_status_moderator(self, mock, *_):
|
||||
"""marks a status as deleted"""
|
||||
view = views.DeleteStatus.as_view()
|
||||
with patch("bookwyrm.activitystreams.add_status_task.delay"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue