Include following state in scan payload

This commit is contained in:
Eliot Berriot 2018-04-09 19:00:11 +02:00
parent f0ef9ea561
commit c97db31cb1
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 51 additions and 3 deletions

View file

@ -39,6 +39,10 @@ def test_library_scan_from_account_name(mocker, factories):
'webfinger': get_resource_result,
'actor': actor_data,
'library': get_library_data_result,
'local': {
'following': False,
'awaiting_approval': False,
},
}
@ -63,4 +67,4 @@ def test_get_library_data_requires_authentication(r_mock, factories):
url = 'https://test.library'
r_mock.get(url, status_code=403)
result = library.get_library_data(url)
assert result['errors'] == ['This library requires authentication']
assert result['errors'] == ['Permission denied while scanning library']