fix: 集成测试duplication路由硬编码路径改为相对路径
Deploy / Deploy Staging (push) Failing after 134h18m11s
CI/CD Pipeline / Frontend Lint (push) Failing after 134h18m18s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 134h18m18s
Deploy / Staging E2E Tests (push) Failing after 1792h52m52s
Deploy / Production Browser E2E (push) Failing after 1792h53m39s
Deploy / Deploy Production (push) Failing after 1792h53m41s
Deploy / Build Production Runtime Images (push) Failing after 1792h53m43s
Deploy / Deploy Staging (push) Failing after 134h18m11s
CI/CD Pipeline / Frontend Lint (push) Failing after 134h18m18s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 134h18m18s
Deploy / Staging E2E Tests (push) Failing after 1792h52m52s
Deploy / Production Browser E2E (push) Failing after 1792h53m39s
Deploy / Deploy Production (push) Failing after 1792h53m41s
Deploy / Build Production Runtime Images (push) Failing after 1792h53m43s
This commit is contained in:
Regular → Executable
+5
-1
@@ -382,9 +382,13 @@ for ns in ["app", "app.api", "app.api.routes"]:
|
||||
|
||||
import importlib.util
|
||||
|
||||
_route_path = os.path.join(
|
||||
os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))),
|
||||
"apps", "api", "app", "api", "routes", "duplication.py"
|
||||
)
|
||||
_spec = importlib.util.spec_from_file_location(
|
||||
"app.api.routes.duplication",
|
||||
"/tmp/xiaoxia-saas/apps/api/app/api/routes/duplication.py",
|
||||
_route_path,
|
||||
)
|
||||
duplication = importlib.util.module_from_spec(_spec)
|
||||
sys.modules["app.api.routes.duplication"] = duplication
|
||||
|
||||
Reference in New Issue
Block a user