feat(tplus): 新增 T+ 只读同步服务与同步管理

This commit is contained in:
liuwenxin committed 2026-10-28 11:42:15 +08:00
1 parent 78bef43c06
commit 4fe5916c2c
43 files changed
+3309 -388

No files matched your search

+6 -1
View File
@@ -13,7 +13,12 @@ VALID_SECRET = "x" * 32
def _settings(**overrides: object) -> Settings:
"""构造一个不读取 .env 的配置实例。"""
params: dict[str, object] = {"_env_file": None, "app_secret_key": VALID_SECRET}
# _env_file=None 只禁用文件读取;显式值避免隔离测试库的环境变量影响默认值断言。
params: dict[str, object] = {
"_env_file": None,
"app_secret_key": VALID_SECRET,
"mysql_database": "payroll",
}
params.update(overrides)
return Settings(**params) # type: ignore[arg-type]