See #192: removed useless localPosts and localComments

merge-requests/237/head
Eliot Berriot 2018-05-07 23:26:48 +02:00
rodzic 310179c19e
commit a679f48fcf
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
2 zmienionych plików z 3 dodań i 9 usunięć

Wyświetl plik

@ -27,9 +27,7 @@ def get():
'usage': { 'usage': {
'users': { 'users': {
'total': 0, 'total': 0,
}, }
'localPosts': 0,
'localComments': 0,
}, },
'metadata': { 'metadata': {
'shortDescription': preferences.get('instance__short_description'), 'shortDescription': preferences.get('instance__short_description'),

Wyświetl plik

@ -33,9 +33,7 @@ def test_nodeinfo_dump(preferences, mocker):
'usage': { 'usage': {
'users': { 'users': {
'total': stats['users'], 'total': stats['users'],
}, }
'localPosts': 0,
'localComments': 0,
}, },
'metadata': { 'metadata': {
'shortDescription': preferences['instance__short_description'], 'shortDescription': preferences['instance__short_description'],
@ -90,9 +88,7 @@ def test_nodeinfo_dump_stats_disabled(preferences, mocker):
'usage': { 'usage': {
'users': { 'users': {
'total': 0, 'total': 0,
}, }
'localPosts': 0,
'localComments': 0,
}, },
'metadata': { 'metadata': {
'shortDescription': preferences['instance__short_description'], 'shortDescription': preferences['instance__short_description'],