mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 14:08:25 -04:00
Merge pull request #3376 from alphagov/get-single-contact-list
Use new API endpoint to get single contact list
This commit is contained in:
@@ -4022,7 +4022,7 @@ def test_send_from_contact_list(
|
||||
mocker,
|
||||
client_request,
|
||||
fake_uuid,
|
||||
mock_get_contact_lists,
|
||||
mock_get_contact_list,
|
||||
):
|
||||
new_uuid = uuid.uuid4()
|
||||
mock_download = mocker.patch('app.models.contact_list.s3download', return_value='contents')
|
||||
|
||||
@@ -1180,7 +1180,7 @@ def test_cant_save_bad_contact_list(
|
||||
def test_view_contact_list(
|
||||
mocker,
|
||||
client_request,
|
||||
mock_get_contact_lists,
|
||||
mock_get_contact_list,
|
||||
fake_uuid,
|
||||
):
|
||||
mocker.patch('app.models.contact_list.s3download', return_value='\n'.join(
|
||||
@@ -1222,7 +1222,7 @@ def test_view_contact_list(
|
||||
|
||||
def test_view_contact_list_404s_for_non_existing_list(
|
||||
client_request,
|
||||
mock_get_contact_lists,
|
||||
mock_get_no_contact_list,
|
||||
fake_uuid,
|
||||
):
|
||||
client_request.get(
|
||||
@@ -1237,7 +1237,7 @@ def test_download_contact_list(
|
||||
mocker,
|
||||
logged_in_client,
|
||||
fake_uuid,
|
||||
mock_get_contact_lists,
|
||||
mock_get_contact_list,
|
||||
):
|
||||
mocker.patch(
|
||||
'app.models.contact_list.s3download',
|
||||
|
||||
Reference in New Issue
Block a user