mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 03:19:24 +02:00
Library follows and user notifications
This commit is contained in:
parent
a879993280
commit
ecd395d6b0
41 changed files with 1191 additions and 347 deletions
|
@ -59,7 +59,7 @@ def test_clean_federation_music_cache_orphaned(settings, preferences, factories)
|
|||
assert os.path.exists(remove_path) is False
|
||||
|
||||
|
||||
def test_handle_in(factories, mocker, now):
|
||||
def test_handle_in(factories, mocker, now, queryset_equal_list):
|
||||
mocked_dispatch = mocker.patch("funkwhale_api.federation.routes.inbox.dispatch")
|
||||
|
||||
r1 = factories["users.User"](with_actor=True).actor
|
||||
|
@ -70,7 +70,7 @@ def test_handle_in(factories, mocker, now):
|
|||
tasks.dispatch_inbox(activity_id=a.pk)
|
||||
|
||||
mocked_dispatch.assert_called_once_with(
|
||||
a.payload, context={"actor": a.actor, "inbox_items": [ii1, ii2]}
|
||||
a.payload, context={"actor": a.actor, "activity": a, "inbox_items": [ii1, ii2]}
|
||||
)
|
||||
|
||||
ii1.refresh_from_db()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue