mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 04:19:24 +02:00
Test bot can now unfollow
This commit is contained in:
parent
81e7f03f77
commit
3ad1fe17d5
6 changed files with 100 additions and 13 deletions
|
@ -3,7 +3,7 @@ from funkwhale_api.federation import keys
|
|||
from funkwhale_api.federation import signing
|
||||
|
||||
|
||||
def test_authenticate(nodb_factories, mocker, api_request):
|
||||
def test_authenticate(factories, mocker, api_request):
|
||||
private, public = keys.get_key_pair()
|
||||
actor_url = 'https://test.federation/actor'
|
||||
mocker.patch(
|
||||
|
@ -18,7 +18,7 @@ def test_authenticate(nodb_factories, mocker, api_request):
|
|||
'id': actor_url + '#main-key',
|
||||
}
|
||||
})
|
||||
signed_request = nodb_factories['federation.SignedRequest'](
|
||||
signed_request = factories['federation.SignedRequest'](
|
||||
auth__key=private,
|
||||
auth__key_id=actor_url + '#main-key',
|
||||
auth__headers=[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue