mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 06:29:55 +02:00
Include following state in scan payload
This commit is contained in:
parent
f0ef9ea561
commit
c97db31cb1
3 changed files with 51 additions and 3 deletions
|
@ -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']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue