Updated to retrieve csv upload from new bucket.

Fix test errors.
This commit is contained in:
Nicholas Staples
2016-04-07 13:44:04 +01:00
parent 74700334e6
commit 143d1b0db8
9 changed files with 88 additions and 45 deletions

View File

@@ -80,17 +80,26 @@ class Config(object):
TWILIO_NUMBER = os.getenv('TWILIO_NUMBER')
FIRETEXT_NUMBER = os.getenv('FIRETEXT_NUMBER')
FIRETEXT_API_KEY = os.getenv("FIRETEXT_API_KEY")
CSV_UPLOAD_BUCKET_NAME = '{}-notifications-csv-upload'.format(
os.environ['NOTIFY_API_ENVIRONMENT'].split('config.')[1].lower())
class Development(Config):
DEBUG = True
class Preview(Config):
pass
class Test(Development):
pass
configs = {
'development': 'config.Development',
'test': 'config.Test',
'live': 'config_live.Live',
'staging': 'config_staging.Staging',
'preview': 'config.Config'
'preview': 'config.Preview'
}