Fix broken nodeinfo test
This commit is contained in:
parent
875a6ba2df
commit
b126e09682
|
@ -1,4 +1,6 @@
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
|
from funkwhale_api import __version__ as api_version
|
||||||
|
from funkwhale_api.music.utils import SUPPORTED_EXTENSIONS
|
||||||
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
|
@ -9,7 +11,7 @@ def test_nodeinfo_default(api_client):
|
||||||
|
|
||||||
expected = {
|
expected = {
|
||||||
"version": "2.0",
|
"version": "2.0",
|
||||||
"software": OrderedDict([("name", "funkwhale"), ("version", "1.2.7")]),
|
"software": OrderedDict([("name", "funkwhale"), ("version", api_version)]),
|
||||||
"protocols": ["activitypub"],
|
"protocols": ["activitypub"],
|
||||||
"services": OrderedDict([("inbound", []), ("outbound", [])]),
|
"services": OrderedDict([("inbound", []), ("outbound", [])]),
|
||||||
"openRegistrations": False,
|
"openRegistrations": False,
|
||||||
|
@ -37,16 +39,7 @@ def test_nodeinfo_default(api_client):
|
||||||
"albums": OrderedDict([("total", 0)]),
|
"albums": OrderedDict([("total", 0)]),
|
||||||
"music": OrderedDict([("hours", 0)]),
|
"music": OrderedDict([("hours", 0)]),
|
||||||
},
|
},
|
||||||
"supportedUploadExtensions": [
|
"supportedUploadExtensions": SUPPORTED_EXTENSIONS,
|
||||||
"aac",
|
|
||||||
"aif",
|
|
||||||
"aiff",
|
|
||||||
"flac",
|
|
||||||
"m4a",
|
|
||||||
"mp3",
|
|
||||||
"ogg",
|
|
||||||
"opus",
|
|
||||||
],
|
|
||||||
"allowList": {"enabled": False, "domains": None},
|
"allowList": {"enabled": False, "domains": None},
|
||||||
"reportTypes": [
|
"reportTypes": [
|
||||||
OrderedDict(
|
OrderedDict(
|
||||||
|
|
Loading…
Reference in New Issue