Fix #114: can now filter artists and albums with no listenable tracks

This commit is contained in:
Eliot Berriot 2018-03-07 22:34:16 +01:00
parent 0f06c39854
commit bfeb86865d
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
6 changed files with 84 additions and 4 deletions

View file

@ -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