Mock mocks mocks
This commit is contained in:
parent
630ee3b766
commit
cbf5747308
12 changed files with 73 additions and 58 deletions
|
@ -117,7 +117,8 @@ class ReportViews(TestCase):
|
|||
self.assertFalse(report.resolved)
|
||||
|
||||
@patch("bookwyrm.suggested_users.rerank_suggestions_task.delay")
|
||||
def test_suspend_user(self):
|
||||
@patch("bookwyrm.suggested_users.remove_user_task.delay")
|
||||
def test_suspend_user(self, *_):
|
||||
"""toggle whether a user is able to log in"""
|
||||
self.assertTrue(self.rat.is_active)
|
||||
request = self.factory.post("")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue