mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Extract formatters into their own module
We have lots of functions for converting various types of data into strings to be displayed to the user somewhere. This commit collects all these functions into their own module, rather than having them cluttering up `app/__init__.py` or buried amongst various other things that have ended up in `app/utils.py`.
This commit is contained in:
@@ -15,6 +15,7 @@ from app import (
|
||||
notification_api_client,
|
||||
service_api_client,
|
||||
)
|
||||
from app.formatters import email_safe
|
||||
from app.main import main
|
||||
from app.main.forms import CallbackForm, CreateKeyForm, GuestList
|
||||
from app.notify_client.api_key_api_client import (
|
||||
@@ -22,7 +23,7 @@ from app.notify_client.api_key_api_client import (
|
||||
KEY_TYPE_TEAM,
|
||||
KEY_TYPE_TEST,
|
||||
)
|
||||
from app.utils import email_safe, user_has_permissions
|
||||
from app.utils import user_has_permissions
|
||||
|
||||
dummy_bearer_token = 'bearer_token_set'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user