Move DATETIME_FORMAT from app to app.utils

To avoid cyclical import issues
This commit is contained in:
Pea Tyczynska
2020-12-18 17:39:35 +00:00
parent ee833bd65b
commit 95deb5a52f
17 changed files with 24 additions and 39 deletions

View File

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

View File

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