From 1b25a3c7628adce9c8ae8be6b8550175edca4021 Mon Sep 17 00:00:00 2001 From: Nicholas Staples Date: Tue, 9 Feb 2016 16:13:48 +0000 Subject: [PATCH] Removed alpha client imports. --- app/__init__.py | 3 --- app/notifications/rest.py | 2 +- app/user/rest.py | 2 +- tests/app/notifications/test_rest.py | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index 5fefc46d4..86bf0f115 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -10,12 +10,10 @@ from flask_marshmallow import Marshmallow from werkzeug.local import LocalProxy from config import configs from utils import logging -from notify_client import NotifyAPIClient db = SQLAlchemy() ma = Marshmallow() -notify_alpha_client = NotifyAPIClient() 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) init_app(application, config_overrides) logging.init_app(application) - notify_alpha_client.init_app(application) from app.service.rest import service as service_blueprint from app.user.rest import user as user_blueprint diff --git a/app/notifications/rest.py b/app/notifications/rest.py index 84b119d46..0c3cdf569 100644 --- a/app/notifications/rest.py +++ b/app/notifications/rest.py @@ -6,7 +6,7 @@ from flask import ( 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.dao import (templates_dao) from app.schemas import ( diff --git a/app/user/rest.py b/app/user/rest.py index 02d46732d..0fd28f67a 100644 --- a/app/user/rest.py +++ b/app/user/rest.py @@ -17,7 +17,7 @@ from app.dao.users_dao import ( from app.schemas import ( user_schema, users_schema, service_schema, services_schema, 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__) diff --git a/tests/app/notifications/test_rest.py b/tests/app/notifications/test_rest.py index 1715c7a12..b506bb10a 100644 --- a/tests/app/notifications/test_rest.py +++ b/tests/app/notifications/test_rest.py @@ -3,7 +3,6 @@ import uuid from tests import create_authorization_header from flask import url_for, json -from app import notify_alpha_client from app.models import Service