mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-28 19:59:47 -04:00
Move DATETIME_FORMAT from app to app.utils
To avoid cyclical import issues
This commit is contained in:
@@ -5,8 +5,9 @@ import pytest
|
||||
import requests_mock
|
||||
from freezegun import freeze_time
|
||||
|
||||
from app import (DATETIME_FORMAT, encryption)
|
||||
from app import encryption
|
||||
from app.celery.service_callback_tasks import send_delivery_status_to_service, send_complaint_to_service
|
||||
from app.utils import DATETIME_FORMAT
|
||||
from tests.app.db import (
|
||||
create_complaint,
|
||||
create_notification,
|
||||
|
||||
@@ -16,10 +16,7 @@ from notifications_utils.template import (
|
||||
)
|
||||
from notifications_utils.columns import Row
|
||||
|
||||
from app import (
|
||||
DATETIME_FORMAT,
|
||||
encryption
|
||||
)
|
||||
from app import encryption
|
||||
from app.celery import provider_tasks
|
||||
from app.celery import tasks
|
||||
from app.celery.tasks import (
|
||||
@@ -52,6 +49,7 @@ from app.models import (
|
||||
SMS_TYPE,
|
||||
ReturnedLetter,
|
||||
NOTIFICATION_CREATED)
|
||||
from app.utils import DATETIME_FORMAT
|
||||
|
||||
from tests.app import load_example_csv
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ from unittest.mock import Mock
|
||||
|
||||
import pytest
|
||||
|
||||
from app import DATETIME_FORMAT
|
||||
from app.clients.cbc_proxy import CBCProxyClient, CBCProxyException, CBCProxyEE, CBCProxyCanary
|
||||
from app.utils import DATETIME_FORMAT
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
|
||||
@@ -5,7 +5,7 @@ from unittest.mock import Mock
|
||||
import pytest
|
||||
from freezegun import freeze_time
|
||||
|
||||
from app import DATETIME_FORMAT
|
||||
from app.utils import DATETIME_FORMAT
|
||||
from tests.app.db import create_ft_notification_status, create_notification
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import datetime
|
||||
import pytest
|
||||
from flask import json, url_for
|
||||
|
||||
from app import DATETIME_FORMAT
|
||||
from app.utils import DATETIME_FORMAT
|
||||
from tests import create_authorization_header
|
||||
from tests.app.db import (
|
||||
create_notification,
|
||||
|
||||
@@ -2,8 +2,8 @@ import pytest
|
||||
|
||||
from flask import json
|
||||
|
||||
from app import DATETIME_FORMAT
|
||||
from app.models import (TEMPLATE_TYPES, EMAIL_TYPE, SMS_TYPE, LETTER_TYPE,)
|
||||
from app.utils import DATETIME_FORMAT
|
||||
from tests import create_authorization_header
|
||||
from tests.app.db import create_template, create_letter_contact
|
||||
|
||||
|
||||
Reference in New Issue
Block a user