mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-09-08 12:56:45 +00:00
Formatting
This commit is contained in:
parent
6490a55274
commit
54682d6f5c
1 changed files with 2 additions and 3 deletions
|
@ -281,8 +281,7 @@ class Inbox(TestCase):
|
||||||
self.local_user.save(broadcast=False)
|
self.local_user.save(broadcast=False)
|
||||||
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.delay"):
|
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.delay"):
|
||||||
request = models.UserFollowRequest.objects.create(
|
request = models.UserFollowRequest.objects.create(
|
||||||
user_subject=self.remote_user,
|
user_subject=self.remote_user, user_object=self.local_user
|
||||||
user_object=self.local_user
|
|
||||||
)
|
)
|
||||||
self.assertTrue(self.local_user.follower_requests.exists())
|
self.assertTrue(self.local_user.follower_requests.exists())
|
||||||
|
|
||||||
|
@ -299,7 +298,7 @@ class Inbox(TestCase):
|
||||||
"type": "Follow",
|
"type": "Follow",
|
||||||
"actor": "https://example.com/users/rat",
|
"actor": "https://example.com/users/rat",
|
||||||
"object": "https://example.com/user/mouse",
|
"object": "https://example.com/user/mouse",
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
views.inbox.activity_task(activity)
|
views.inbox.activity_task(activity)
|
||||||
|
|
Loading…
Reference in a new issue