-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.py.tmpl
40 lines (36 loc) · 1.54 KB
/
config.py.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from os.path import dirname, join
class Config(object):
SECRET_KEY = 'super top secret key'
ASSETS_AUTO_BUILD = False
REGISTRY_API_BASE_URL = 'https://iatiregistry.org/api/3/action'
CELERY_BROKER_URL = 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
CURRENT_PATH = dirname(__file__)
MEDIA_FOLDER = join(CURRENT_PATH, 'media')
SQLALCHEMY_DATABASE_URI = 'sqlite:///{}'.format(
join(CURRENT_PATH, 'db.sqlite3'))
SQLALCHEMY_TRACK_MODIFICATIONS = False
ALLOWED_EXTENSIONS = ('xml',)
TEST_SETS = {
'pwyf': {
'name': 'Aid Transparency Index tests',
'description': 'These tests only run on current data. They ' +
'comprise the automated component of the Aid ' +
'Transparency Index, which aims to rank donors ' +
'by data quality.',
'filepath': join(CURRENT_PATH, 'index-indicator-definitions',
'test_definitions'),
'components': (
('org_planning', 'Organisational planning and commitments'),
('finance', 'Finance and budgets'),
('project_attributes', 'Project attributes'),
('joining_up', 'Joining-up development data'),
('performance', 'Performance'),
),
},
}
CODELIST_LIST = [
'ActivityStatus', 'AidType', 'FinanceType',
'FlowType', 'Sector', 'TiedStatus']
DEFAULT_TEST_SET = 'pwyf'
PER_PAGE = 10