first commit

This commit is contained in:
552068321@qq.com
2022-11-04 17:37:08 +08:00
commit 6f7de660aa
192 changed files with 32574 additions and 0 deletions

14
app/configs/testing.py Normal file
View 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)