mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-06 05:09:56 +02:00
See #186: moved api authentication required setting to preference
This commit is contained in:
parent
6100b106c0
commit
a3b2125d2a
13 changed files with 62 additions and 34 deletions
|
@ -18,8 +18,8 @@ def test_can_get_search_results_from_youtube(mocker):
|
|||
|
||||
|
||||
def test_can_get_search_results_from_funkwhale(
|
||||
settings, mocker, api_client, db):
|
||||
settings.API_AUTHENTICATION_REQUIRED = False
|
||||
preferences, mocker, api_client, db):
|
||||
preferences['common__api_authentication_required'] = False
|
||||
mocker.patch(
|
||||
'funkwhale_api.providers.youtube.client._do_search',
|
||||
return_value=api_data.search['8 bit adventure'])
|
||||
|
@ -70,8 +70,8 @@ def test_can_send_multiple_queries_at_once(mocker):
|
|||
|
||||
|
||||
def test_can_send_multiple_queries_at_once_from_funwkhale(
|
||||
settings, mocker, db, api_client):
|
||||
settings.API_AUTHENTICATION_REQUIRED = False
|
||||
preferences, mocker, db, api_client):
|
||||
preferences['common__api_authentication_required'] = False
|
||||
mocker.patch(
|
||||
'funkwhale_api.providers.youtube.client._do_search',
|
||||
return_value=api_data.search['8 bit adventure'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue