mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 11:00:39 +02:00
Fix #808: Advertise the list of supported upload extensions in the Nodeinfo endpoint
This commit is contained in:
parent
2b7dac2175
commit
119df01335
4 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
import funkwhale_api
|
||||
from funkwhale_api.instance import nodeinfo
|
||||
from funkwhale_api.federation import actors
|
||||
from funkwhale_api.music import utils as music_utils
|
||||
|
||||
|
||||
def test_nodeinfo_dump(preferences, mocker):
|
||||
|
@ -46,6 +47,7 @@ def test_nodeinfo_dump(preferences, mocker):
|
|||
"favorites": {"tracks": {"total": stats["track_favorites"]}},
|
||||
"listenings": {"total": stats["listenings"]},
|
||||
},
|
||||
"supportedUploadExtensions": music_utils.SUPPORTED_EXTENSIONS,
|
||||
},
|
||||
}
|
||||
assert nodeinfo.get() == expected
|
||||
|
@ -76,6 +78,7 @@ def test_nodeinfo_dump_stats_disabled(preferences, mocker):
|
|||
"common__api_authentication_required"
|
||||
],
|
||||
},
|
||||
"supportedUploadExtensions": music_utils.SUPPORTED_EXTENSIONS,
|
||||
},
|
||||
}
|
||||
assert nodeinfo.get() == expected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue