File tree 2 files changed +30
-0
lines changed
2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 3
3
- " 2.7"
4
4
install :
5
5
- pip install -r requirements.txt
6
+ - cp tests/_example_config.py rootio/config.py
6
7
script : pytest
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+
3
+ import os
4
+ from utils import make_dir
5
+
6
+ PROJECT_ROOT = os .path .abspath (os .path .dirname (os .path .dirname (__file__ )))
7
+ INSTANCE_FOLDER_PATH = os .path .join (PROJECT_ROOT , 'instance' )
8
+
9
+ class BaseConfig (object ):
10
+ PROJECT = "rootio"
11
+ SECRET_KEY = 'some random key'
12
+ CONTENT_DIR = "/var/content"
13
+ LOG_FOLDER = os .path .join (INSTANCE_FOLDER_PATH , 'logs' )
14
+ ZMQ_BIND_ADDR = "tcp://127.0.0.1:55777"
15
+ ZMQ_SOCKET_TYPE = "PUB"
16
+ ACCEPT_LANGUAGES = {'en' :'English' }
17
+
18
+ class DefaultConfig (BaseConfig ):
19
+ pass
20
+
21
+ class TestConfig (BaseConfig ):
22
+ TESTING = True
23
+ CSRF_ENABLED = False
24
+ WTF_CSRF_ENABLED = False
25
+
26
+ SQLALCHEMY_ECHO = False
27
+ SQLALCHEMY_DATABASE_URI = 'sqlite://' # store db in memory
28
+
29
+ MAIL_DEFAULT_SENDER = '[email protected] '
You can’t perform that action at this time.
0 commit comments