feat: TenantSource 抽象——File源(测试/档案)与DB源(生产),registry 数据源可切换+reload upsert

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-10-13 08:50:16 +08:00
parent 386b5eb90a
commit c7fd533320
9 changed files with 720 additions and 85 deletions
+1 -2
View File
@@ -16,13 +16,12 @@ from app.platform.host_middleware import TenantHostMiddleware
from tests.conftest import (
AUTO_HOST,
JIANCAI_HOST,
NOPE_HOST,
SEED_DIR,
app_test_client,
build_app,
)
NOPE_HOST = "nope.example.com"
# ---- 中间件挂载顺序守护 -------------------------------------------------------