forked from mirrors/bookwyrm
Mocks for user admin
This commit is contained in:
parent
3970df312a
commit
630ee3b766
1 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,9 @@ class UserAdminViews(TestCase):
|
||||||
result.render()
|
result.render()
|
||||||
self.assertEqual(result.status_code, 200)
|
self.assertEqual(result.status_code, 200)
|
||||||
|
|
||||||
def test_user_admin_page_post(self):
|
@patch("bookwyrm.suggested_users.rerank_suggestions_task.delay")
|
||||||
|
@patch("bookwyrm.suggested_users.remove_user_task.delay")
|
||||||
|
def test_user_admin_page_post(self, *_):
|
||||||
"""set the user's group"""
|
"""set the user's group"""
|
||||||
group = Group.objects.create(name="editor")
|
group = Group.objects.create(name="editor")
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
|
|
Loading…
Reference in a new issue