mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 05:28:49 -04:00
New table and endpoints for service contact lists.
- Table to store meta data for the emergency contact list for a service. - Endpoint for fetching contact lists for service - Endpoint for saving contact list for service. The list will be stored in S3. The service will then be able to send emergency announcements to staff.
This commit is contained in:
10
tests/app/dao/test_service_contact_list_dao.py
Normal file
10
tests/app/dao/test_service_contact_list_dao.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from app.dao.service_contact_list_dao import dao_get_contact_lists
|
||||
from tests.app.db import create_service_contact_list
|
||||
|
||||
|
||||
def test_dao_get_contact_lists(notify_db_session):
|
||||
contact_list = create_service_contact_list()
|
||||
fetched_list = dao_get_contact_lists(contact_list.service_id)
|
||||
|
||||
assert len(fetched_list) == 1
|
||||
assert fetched_list[0] == contact_list
|
||||
Reference in New Issue
Block a user