RODY/app/configs/testing.py
552068321@qq.com 6f7de660aa first commit
2022-11-04 17:37:08 +08:00

15 lines
332 B
Python

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)