services/step2-5:打通前四个预处理步骤的真实后端独立服务

新增 src/new/services/{step2,step3,step4,step5}_service.py 四个独立后端服务:
This commit is contained in:
DXC
2026-06-17 09:15:22 +08:00
parent ef3de632d3
commit f8d5ea2eb8
6 changed files with 672 additions and 13 deletions

View File

@ -293,7 +293,7 @@ def smoke_e2e():
"mode=ndwi" in log_text,
"→ 找 ['mode=ndwi']")
# ---- 切到 step2真实 viewservice 仍走占位 ----
# ---- 切到 step2真实 view + 真实 service ----
win.nav_list.setCurrentRow(1)
view_step2 = win._views.get("step2")
report("L3", "_views['step2'] 是真实 Step2View已迁移",
@ -310,8 +310,8 @@ def smoke_e2e():
log_text = win.log_text.toPlainText()
report("L3", "step2 真实 view 派发后日志含 Router 收到 step2 请求",
"收到 step2 请求" in log_text)
report("L3", "step2 service 走占位:日志含 Service… not_implemented",
"not_implemented" in log_text,
report("L3", "step2 真实 service 已迁移:空 img_path 触发 Service✗ 错误分支",
"[Service✗]" in log_text and "execute_step2" in log_text,
f"log 片段:{log_text[-200:]!r}")
win.close()