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:
Carlo Costino
2024-05-16 10:17:45 -04:00
parent 4cdf8b2cb2
commit 99edc88197
129 changed files with 49913 additions and 263 deletions

View File

@@ -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

View File

@@ -1,7 +1,6 @@
import pytest
from flask import current_app
from freezegun import freeze_time
from notifications_utils import SMS_CHAR_COUNT_LIMIT
import app
from app.dao import templates_dao
@@ -37,6 +36,7 @@ from app.serialised_models import (
from app.service.utils import service_allowed_to_send_to
from app.utils import get_template_instance
from app.v2.errors import BadRequestError, RateLimitError, TotalRequestsError
from notifications_utils import SMS_CHAR_COUNT_LIMIT
from tests.app.db import (
create_api_key,
create_reply_to_email,