mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Add a page to view a single contact list
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user