funkwhale/api/tests/federation/conftest.py
2018-04-01 10:17:06 +02:00

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