test: 隔离单测中的站点原生资源 (#6452)

* test: isolate native site resources

* refactor(test): retain sites stub helper contract

* fix(test): preserve sites stub probe imports

---------

Co-authored-by: jxxghp <jxxghp@gmail.com>
This commit is contained in:
InfinityPacer
2026-08-25 16:26:46 +08:00
committed by GitHub
co-authored by jxxghp
parent f3622de82e
commit c727d9c9f1
10 changed files with 31 additions and 49 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ IDENTITY_INDEX_SIGNATURES = {
CURRENT_SCHEMA_CHAIN_SCRIPT = """
from app.testing.bootstrap import ensure_sites_stub
# Alembic 会导入引用业务链的旧 revision;全新 CI 环境没有动态下发的 sites 模块
# Alembic 会导入引用业务链的旧 revision,迁移验证不应加载本机站点原生制品
ensure_sites_stub()
from alembic.config import Config