mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 02:20:01 +02:00
Use our instance policies to discard fetched and inbox objects
This commit is contained in:
parent
9151a185e0
commit
1c55f2c9a6
15 changed files with 317 additions and 31 deletions
|
@ -507,7 +507,7 @@ def test_music_library_serializer_to_ap(factories):
|
|||
def test_music_library_serializer_from_public(factories, mocker):
|
||||
actor = factories["federation.Actor"]()
|
||||
retrieve = mocker.patch(
|
||||
"funkwhale_api.federation.utils.retrieve", return_value=actor
|
||||
"funkwhale_api.federation.utils.retrieve_ap_object", return_value=actor
|
||||
)
|
||||
data = {
|
||||
"@context": [
|
||||
|
@ -550,7 +550,7 @@ def test_music_library_serializer_from_public(factories, mocker):
|
|||
def test_music_library_serializer_from_private(factories, mocker):
|
||||
actor = factories["federation.Actor"]()
|
||||
retrieve = mocker.patch(
|
||||
"funkwhale_api.federation.utils.retrieve", return_value=actor
|
||||
"funkwhale_api.federation.utils.retrieve_ap_object", return_value=actor
|
||||
)
|
||||
data = {
|
||||
"@context": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue