Updated the Provider stats and rates DAO objects to query based on the identifier in the ProviderDetails object.

- updated all tests
- changed teardown to leave provider details rows on end of individual tests
This commit is contained in:
Martyn Inglis
2016-05-06 09:09:47 +01:00
parent fedbb27ffd
commit 57e05feafb
15 changed files with 149 additions and 135 deletions

View File

@@ -1,6 +1,5 @@
import uuid
import os
import re
from flask import request, url_for
from flask import Flask, _request_ctx_stack
from flask.ext.sqlalchemy import SQLAlchemy
@@ -26,6 +25,9 @@ mmg_client = MMGClient()
aws_ses_client = AwsSesClient()
encryption = Encryption()
sms_clients = []
email_clients = []
api_user = LocalProxy(lambda: _request_ctx_stack.top.api_user)
@@ -75,6 +77,9 @@ def create_app(app_name=None):
application.register_blueprint(template_statistics_blueprint)
application.register_blueprint(events_blueprint)
email_clients = [aws_ses_client]
sms_clients = [mmg_client, firetext_client]
return application