2016-04-04 14:59:11 +02:00
|
|
|
|
"""Flask configuration file for unit testing."""
|
|
|
|
|
|
|
|
|
|
BLENDER_ID_ENDPOINT = 'http://127.0.0.1:8001' # nonexistant server, no trailing slash!
|
|
|
|
|
|
2017-08-25 10:48:44 +02:00
|
|
|
|
SERVER_NAME = 'localhost'
|
|
|
|
|
PILLAR_SERVER_ENDPOINT = 'http://localhost/api/'
|
2017-08-25 10:32:04 +02:00
|
|
|
|
|
2016-04-04 16:10:55 +02:00
|
|
|
|
DEBUG = False
|
2016-04-04 14:59:11 +02:00
|
|
|
|
TESTING = True
|
|
|
|
|
|
|
|
|
|
CDN_STORAGE_USER = 'u41508580125621'
|
2016-07-08 11:26:56 +02:00
|
|
|
|
|
|
|
|
|
FILESIZE_LIMIT_BYTES_NONSUBS = 20 * 2 ** 10
|
2017-03-03 12:00:24 +01:00
|
|
|
|
ROLES_FOR_UNLIMITED_UPLOADS = {'subscriber', 'demo', 'admin'}
|
2017-03-22 15:46:24 +01:00
|
|
|
|
|
|
|
|
|
GCLOUD_APP_CREDENTIALS = 'invalid-file-because-gcloud-storage-should-be-mocked-in-tests'
|
|
|
|
|
STORAGE_BACKEND = 'local'
|
2017-05-04 17:49:18 +02:00
|
|
|
|
|
|
|
|
|
EXTERNAL_SUBSCRIPTIONS_MANAGEMENT_SERVER = "http://store.localhost/api"
|
2017-05-18 13:07:09 +02:00
|
|
|
|
|
|
|
|
|
SECRET_KEY = '12345'
|
2017-08-24 12:38:43 +02:00
|
|
|
|
|
|
|
|
|
OAUTH_CREDENTIALS = {
|
|
|
|
|
'blender-id': {
|
|
|
|
|
'id': 'blender-id-app-id',
|
|
|
|
|
'secret': 'blender-id–secret',
|
2017-12-12 18:49:52 +01:00
|
|
|
|
'base_url': 'http://blender-id:8000/'
|
2017-08-24 12:38:43 +02:00
|
|
|
|
},
|
|
|
|
|
'facebook': {
|
|
|
|
|
'id': 'fb-app-id',
|
|
|
|
|
'secret': 'facebook-secret'
|
|
|
|
|
},
|
|
|
|
|
'google': {
|
|
|
|
|
'id': 'google-app-id',
|
|
|
|
|
'secret': 'google-secret'
|
|
|
|
|
}
|
|
|
|
|
}
|