Skip to content

Commit

Permalink
add sms notification service
Browse files Browse the repository at this point in the history
  • Loading branch information
William MURA authored and William MURA committed Nov 4, 2014
1 parent 4f78adf commit f278d21
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions webserver/controllers/orders.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from flask import Blueprint, json, make_response, request
from flask.ext.login import AnonymousUserMixin
from flask.ext.babel import gettext
from webserver import db
from webserver import db, app
from webserver.lib.base import jsonify
from webserver.models import Order, StateOrder, Client

Expand Down Expand Up @@ -170,11 +170,8 @@ def update(id):

order.state_id = state.id

# TODO: Get TestingConfig from current config
TestingConfig = True

# SMS Notification
if TestingConfig is False: # pragma: no cover
if app.config['TESTING'] is False: # pragma: no cover
client = TwilioRestClient(TwilioConfig.ACCOUNT_SID, TwilioConfig.AUTH_TOKEN)
client.messages.create(
to="+15142902316",
Expand Down

0 comments on commit f278d21

Please sign in to comment.