foxhole/tests/utils.py

19 lines
382 B
Python
Raw Permalink Normal View History

2023-05-08 06:02:56 +02:00
#!/usr/bin/env python3
from tests import factories
from app.main import app
from app.utils import precheck
def build_remote_actor():
ra = factories.RemoteActorFactory(
base_url="https://example.com",
username="test",
public_key="pk",
)
app.dependency_overrides[precheck.inbox_prechecker] = \
factories.inbox_prechecker
return ra