Add a page to view a single contact list

This commit is contained in:
Chris Hill-Scott
2020-03-13 16:58:43 +00:00
parent f15b9b8d38
commit aa85870ee1
6 changed files with 152 additions and 3 deletions

View File

@@ -1842,6 +1842,33 @@ def mock_create_contact_list(mocker, api_user_active):
)
@pytest.fixture(scope='function')
def mock_get_contact_lists(mocker, api_user_active, fake_uuid):
def _get(service_id):
return [{
'created_at': '2020-03-13 10:59:56',
'created_by': 'Test User',
'id': fake_uuid,
'original_file_name': 'EmergencyContactList.xls',
'row_count': 100,
'service_id': service_id,
'template_type': 'email',
}, {
'created_at': '2020-03-13 13:00:00',
'created_by': 'Test User',
'id': uuid4(),
'original_file_name': 'another ist.csv',
'row_count': 123,
'service_id': service_id,
'template_type': 'sms',
}]
return mocker.patch(
'app.contact_list_api_client.get_contact_lists',
side_effect=_get,
)
@pytest.fixture(scope='function')
def mock_get_notifications(
mocker,