Exemplo n.º 1
0
def client(notify_api, mocker):
    with notify_api.app_context():
        govdelivery_client = GovdeliveryClient()
        statsd_client = mocker.Mock()
        govdelivery_client.init_app("some-token", "https://govdelivery-url",
                                    statsd_client)
        return govdelivery_client
Exemplo n.º 2
0
        options['connect_args']["options"] = "-c statement_timeout={}".format(
            int(app.config['SQLALCHEMY_STATEMENT_TIMEOUT']) * 1000)


db = SQLAlchemy()
migrate = Migrate()
ma = Marshmallow()
notify_celery = NotifyCelery()
encryption = Encryption()
firetext_client = FiretextClient()
loadtest_client = LoadtestingClient()
mmg_client = MMGClient()
aws_ses_client = AwsSesClient()

from app.clients.email.govdelivery_client import GovdeliveryClient  # noqa
govdelivery_client = GovdeliveryClient()
send_grid_client = SendGridClient()
aws_sns_client = AwsSnsClient()
twilio_sms_client = TwilioSMSClient(
    account_sid=os.getenv('TWILIO_ACCOUNT_SID'),
    auth_token=os.getenv('TWILIO_AUTH_TOKEN'),
    from_number=os.getenv('TWILIO_FROM_NUMBER'),
)
aws_pinpoint_client = AwsPinpointClient()
zendesk_client = ZendeskClient()
statsd_client = StatsdClient()
redis_store = RedisClient()
performance_platform_client = PerformancePlatformClient()
document_download_client = DocumentDownloadClient()
va_profile_client = VAProfileClient()
mpi_client = MpiClient()