mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Removed alpha client imports.
This commit is contained in:
@@ -10,12 +10,10 @@ from flask_marshmallow import Marshmallow
|
|||||||
from werkzeug.local import LocalProxy
|
from werkzeug.local import LocalProxy
|
||||||
from config import configs
|
from config import configs
|
||||||
from utils import logging
|
from utils import logging
|
||||||
from notify_client import NotifyAPIClient
|
|
||||||
|
|
||||||
|
|
||||||
db = SQLAlchemy()
|
db = SQLAlchemy()
|
||||||
ma = Marshmallow()
|
ma = Marshmallow()
|
||||||
notify_alpha_client = NotifyAPIClient()
|
|
||||||
|
|
||||||
api_user = LocalProxy(lambda: _request_ctx_stack.top.api_user)
|
api_user = LocalProxy(lambda: _request_ctx_stack.top.api_user)
|
||||||
|
|
||||||
@@ -30,7 +28,6 @@ def create_app(config_name, config_overrides=None):
|
|||||||
ma.init_app(application)
|
ma.init_app(application)
|
||||||
init_app(application, config_overrides)
|
init_app(application, config_overrides)
|
||||||
logging.init_app(application)
|
logging.init_app(application)
|
||||||
notify_alpha_client.init_app(application)
|
|
||||||
|
|
||||||
from app.service.rest import service as service_blueprint
|
from app.service.rest import service as service_blueprint
|
||||||
from app.user.rest import user as user_blueprint
|
from app.user.rest import user as user_blueprint
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from flask import (
|
|||||||
request
|
request
|
||||||
)
|
)
|
||||||
|
|
||||||
from app import (notify_alpha_client, api_user)
|
from app import api_user
|
||||||
from app.aws_sqs import add_notification_to_queue
|
from app.aws_sqs import add_notification_to_queue
|
||||||
from app.dao import (templates_dao)
|
from app.dao import (templates_dao)
|
||||||
from app.schemas import (
|
from app.schemas import (
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ from app.dao.users_dao import (
|
|||||||
from app.schemas import (
|
from app.schemas import (
|
||||||
user_schema, users_schema, service_schema, services_schema,
|
user_schema, users_schema, service_schema, services_schema,
|
||||||
request_verify_code_schema, user_schema_load_json)
|
request_verify_code_schema, user_schema_load_json)
|
||||||
from app import (notify_alpha_client, api_user)
|
from app import api_user
|
||||||
|
|
||||||
|
|
||||||
user = Blueprint('user', __name__)
|
user = Blueprint('user', __name__)
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import uuid
|
|||||||
|
|
||||||
from tests import create_authorization_header
|
from tests import create_authorization_header
|
||||||
from flask import url_for, json
|
from flask import url_for, json
|
||||||
from app import notify_alpha_client
|
|
||||||
from app.models import Service
|
from app.models import Service
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user