See #192: renamed name to nodeName, and include anonymousCanListen value as well

This commit is contained in:
Eliot Berriot 2018-05-08 09:01:02 +02:00
commit cdc8388118
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
2 changed files with 6 additions and 3 deletions

View file

@ -38,10 +38,11 @@ def test_nodeinfo_dump(preferences, mocker):
'metadata': {
'shortDescription': preferences['instance__short_description'],
'longDescription': preferences['instance__long_description'],
'name': preferences['instance__name'],
'nodeName': preferences['instance__name'],
'library': {
'federationEnabled': preferences['federation__enabled'],
'federationNeedsApproval': preferences['federation__music_needs_approval'],
'anonymousCanListen': preferences['common__api_authentication_required'],
'tracks': {
'total': stats['tracks'],
},
@ -93,10 +94,11 @@ def test_nodeinfo_dump_stats_disabled(preferences, mocker):
'metadata': {
'shortDescription': preferences['instance__short_description'],
'longDescription': preferences['instance__long_description'],
'name': preferences['instance__name'],
'nodeName': preferences['instance__name'],
'library': {
'federationEnabled': preferences['federation__enabled'],
'federationNeedsApproval': preferences['federation__music_needs_approval'],
'anonymousCanListen': preferences['common__api_authentication_required'],
},
}
}