Fix #858: Broadcast/handle rejected follows

This commit is contained in:
Agate 2020-08-18 20:40:02 +02:00
commit cd109ddeb6
7 changed files with 120 additions and 13 deletions

View file

@ -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):