Fix #858: Broadcast/handle rejected follows
This commit is contained in:
parent
191f28f79c
commit
cd109ddeb6
7 changed files with 120 additions and 13 deletions
|
|
@ -126,12 +126,9 @@ def test_user_can_accept_or_reject_own_follows(
|
|||
|
||||
assert follow.approved is expected
|
||||
|
||||
if action == "accept":
|
||||
mocked_dispatch.assert_called_once_with(
|
||||
{"type": "Accept"}, context={"follow": follow}
|
||||
)
|
||||
if action == "reject":
|
||||
mocked_dispatch.assert_not_called()
|
||||
mocked_dispatch.assert_called_once_with(
|
||||
{"type": action.title()}, context={"follow": follow}
|
||||
)
|
||||
|
||||
|
||||
def test_user_can_list_inbox_items(factories, logged_in_api_client):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue