kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Fake_request fixture for django requests
rodzic
b5a4b2ca6a
commit
de777764da
|
@ -6,6 +6,8 @@ import tempfile
|
|||
|
||||
from django.contrib.auth.models import AnonymousUser
|
||||
from django.core.cache import cache as django_cache
|
||||
from django.test import client
|
||||
|
||||
from dynamic_preferences.registries import global_preferences_registry
|
||||
|
||||
from rest_framework.test import APIClient
|
||||
|
@ -118,6 +120,11 @@ def api_request():
|
|||
return APIRequestFactory()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def fake_request():
|
||||
return client.RequestFactory()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def activity_registry():
|
||||
r = record.registry
|
||||
|
|
Ładowanie…
Reference in New Issue