Add user via api

Leave original user object in for this slice. Remove on next
This commit is contained in:
Adam Shimali
2016-01-19 15:50:31 +00:00
committed by Rebecca Law
parent 762ab8e394
commit c86b53f7f1
5 changed files with 89 additions and 15 deletions

View File

@@ -22,7 +22,7 @@ class Config(object):
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_SECURE = True
NOTIFY_API_URL = os.getenv('NOTIFY_API_URL', "http://localhost:6001")
NOTIFY_API_URL = os.getenv('NOTIFY_API_URL')
NOTIFY_API_SECRET = os.getenv('NOTIFY_API_SECRET', "dev-secret")
NOTIFY_API_CLIENT = os.getenv('NOTIFY_API_CLIENT', "admin")
@@ -41,12 +41,12 @@ class Config(object):
class Development(Config):
DEBUG = True
NOTIFY_API_URL = 'http://localhost:6011'
ADMIN_CLIENT_USER_NAME = 'dev-notify-admin'
ADMIN_CLIENT_SECRET = 'dev-notify-secret-key'
class Test(Config):
DEBUG = True
class Test(Development):
SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/test_notifications_admin'
WTF_CSRF_ENABLED = False