mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 02:39:58 +02:00
Fix #758: Ensure all our ActivityPub fetches are authenticated
This commit is contained in:
parent
0cec13a78e
commit
da3710ff08
10 changed files with 40 additions and 12 deletions
|
@ -28,6 +28,7 @@ from rest_framework import fields as rest_fields
|
|||
from rest_framework.test import APIClient, APIRequestFactory
|
||||
|
||||
from funkwhale_api.activity import record
|
||||
from funkwhale_api.federation import actors
|
||||
from funkwhale_api.users.permissions import HasUserPermission
|
||||
|
||||
|
||||
|
@ -426,3 +427,8 @@ def rsa_small_key(settings):
|
|||
def a_responses():
|
||||
with aioresponses() as m:
|
||||
yield m
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def service_actor(db):
|
||||
return actors.get_service_actor()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue