See #192: replaced old stats endpoint with nodeinfo

This commit is contained in:
Eliot Berriot 2018-05-07 22:09:03 +02:00
commit b4ad7a4a71
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
7 changed files with 239 additions and 15 deletions

View file

@ -3,16 +3,6 @@ from django.urls import reverse
from funkwhale_api.instance import stats
def test_can_get_stats_via_api(db, api_client, mocker):
stats = {
'foo': 'bar'
}
mocker.patch('funkwhale_api.instance.stats.get', return_value=stats)
url = reverse('api:v1:instance:stats')
response = api_client.get(url)
assert response.data == stats
def test_get_users(mocker):
mocker.patch(
'funkwhale_api.users.models.User.objects.count', return_value=42)