mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 18:31:13 -05:00
Fix code style
This commit is contained in:
@@ -1,12 +1,9 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from flask.ext.script import Manager, Server
|
from flask.ext.script import Manager, Server
|
||||||
from flask.ext.migrate import Migrate, MigrateCommand
|
from flask.ext.migrate import Migrate, MigrateCommand
|
||||||
|
|
||||||
from app import create_app, db
|
from app import create_app, db
|
||||||
|
|
||||||
application = create_app(os.getenv('NOTIFY_API_ENVIRONMENT') or 'development')
|
application = create_app(os.getenv('NOTIFY_API_ENVIRONMENT') or 'development')
|
||||||
@@ -39,7 +36,7 @@ def create_admin_user_service():
|
|||||||
users_dao.save_model_user(user)
|
users_dao.save_model_user(user)
|
||||||
|
|
||||||
service = Service(**{'name': 'Notify Service Admin',
|
service = Service(**{'name': 'Notify Service Admin',
|
||||||
'users':[user],
|
'users': [user],
|
||||||
'limit': 1000,
|
'limit': 1000,
|
||||||
'active': True,
|
'active': True,
|
||||||
'restricted': True})
|
'restricted': True})
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ class Development(Config):
|
|||||||
DANGEROUS_SALT = 'dangerous-salt'
|
DANGEROUS_SALT = 'dangerous-salt'
|
||||||
ADMIN_USER_EMAIL_ADDRESS = 'dev-notify-admin@digital.cabinet-office.gov.uk'
|
ADMIN_USER_EMAIL_ADDRESS = 'dev-notify-admin@digital.cabinet-office.gov.uk'
|
||||||
|
|
||||||
|
|
||||||
class Test(Config):
|
class Test(Config):
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/test_notification_api'
|
SQLALCHEMY_DATABASE_URI = 'postgresql://localhost/test_notification_api'
|
||||||
|
|||||||
Reference in New Issue
Block a user