first commit
This commit is contained in:
14
app/configs/testing.py
Normal file
14
app/configs/testing.py
Normal file
@ -0,0 +1,14 @@
|
||||
import os
|
||||
|
||||
from .default import ROOT_PATH
|
||||
from .default import * # NOQA F401
|
||||
|
||||
|
||||
TEST_BASE_DIR = os.path.join(ROOT_PATH, '.test')
|
||||
SQLALCHEMY_DATABASE_URI = 'sqlite:///{}'.format(
|
||||
os.path.join(TEST_BASE_DIR, 'demo.db'))
|
||||
# SQLALCHEMY_ECHO = True
|
||||
TESTING = True
|
||||
|
||||
if not os.path.exists(TEST_BASE_DIR):
|
||||
os.makedirs(TEST_BASE_DIR)
|
Reference in New Issue
Block a user