mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 03:49:24 +02:00
Fix #114: can now filter artists and albums with no listenable tracks
This commit is contained in:
parent
0f06c39854
commit
bfeb86865d
6 changed files with 84 additions and 4 deletions
|
@ -4,6 +4,7 @@ import pytest
|
|||
from django.core.cache import cache as django_cache
|
||||
from dynamic_preferences.registries import global_preferences_registry
|
||||
from rest_framework.test import APIClient
|
||||
from rest_framework.test import APIRequestFactory
|
||||
|
||||
from funkwhale_api.activity import record
|
||||
from funkwhale_api.taskapp import celery
|
||||
|
@ -84,6 +85,11 @@ def superuser_client(db, factories, client):
|
|||
delattr(client, 'user')
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def api_request():
|
||||
return APIRequestFactory()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def activity_registry():
|
||||
r = record.registry
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue