Files
chenht 8c0aa34fa6 玄龙期货前后端初始版本:FastAPI 后端 + Flutter 客户端
- 后端:LX94 量价背离扫描(85 品种×4 周期)、JPush 推送分发、
  账号/激活码体系、阿里云短信、管理台、28 项验收脚本
- 客户端:36 页 UI(漆器朱金主题)、自绘三窗格龙虾 K 线、
  离线缓存、WorkManager 兜底轮询
2026-11-08 12:26:07 +08:00

8 lines
296 B
Python

"""pytest 全局夹具:测试一律使用独立临时库,绝不触碰主库。"""
import os
import tempfile
# 在任何 app 导入前设置环境变量,config.py 读取的是 XL_DB_PATH
_tmp = tempfile.mkdtemp(prefix="xl_test_db_")
os.environ["XL_DB_PATH"] = os.path.join(_tmp, "test.db")