mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 17:49:16 +02:00
10 lines
286 B
Python
10 lines
286 B
Python
import pytest
|
|
|
|
|
|
@pytest.fixture
|
|
def authenticated_actor(nodb_factories, mocker):
|
|
actor = nodb_factories['federation.Actor']()
|
|
mocker.patch(
|
|
'funkwhale_api.federation.authentication.SignatureAuthentication.authenticate_actor',
|
|
return_value=actor)
|
|
yield actor
|