mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 21:48:49 -04:00
Localize notification_utils to the API
This changeset pulls in all of the notification_utils code directly into the API and removes it as an external dependency. We are doing this to cut down on operational maintenance of the project and will begin removing parts of it no longer needed for the API. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
@@ -5,10 +5,6 @@ from collections import namedtuple
|
||||
import pytest
|
||||
from boto3.exceptions import Boto3Error
|
||||
from freezegun import freeze_time
|
||||
from notifications_utils.recipients import (
|
||||
validate_and_format_email_address,
|
||||
validate_and_format_phone_number,
|
||||
)
|
||||
from sqlalchemy.exc import SQLAlchemyError
|
||||
|
||||
from app.enums import KeyType, NotificationType, ServicePermissionType, TemplateType
|
||||
@@ -21,6 +17,10 @@ from app.notifications.process_notifications import (
|
||||
)
|
||||
from app.serialised_models import SerialisedTemplate
|
||||
from app.v2.errors import BadRequestError
|
||||
from notifications_utils.recipients import (
|
||||
validate_and_format_email_address,
|
||||
validate_and_format_phone_number,
|
||||
)
|
||||
from tests.app.db import create_service, create_template
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user