changed name of test fixture

This commit is contained in:
venusbb
2017-07-11 09:50:09 +01:00
parent 6b650c6d96
commit 5d57189187
3 changed files with 16 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ def restrict_ip_sms():
ip = ip_list[len(ip_list) - 3]
current_app.logger.info("Inbound sms ip route list {}".format(ip_route))
if ip in current_app.config.get('ALLOW_IP_INBOUND_SMS'):
if ip in current_app.config.get('SMS_INBOUND_WHITELIST'):
current_app.logger.info("Inbound sms ip addresses {} passed ".format(ip))
return
else:

View File

@@ -262,7 +262,7 @@ class Config(object):
FREE_SMS_TIER_FRAGMENT_COUNT = 250000
ALLOW_IP_INBOUND_SMS = os.environ.get('SMS_INBOUND_WHITELIST', [])
SMS_INBOUND_WHITELIST = os.environ.get('SMS_INBOUND_WHITELIST', [])
######################