feat(rag): 服务层接线(上传即索引 + use_rag 异步链路 + 强 e2e)
This commit is contained in:
@@ -7,6 +7,7 @@ from __future__ import annotations
|
||||
from pathlib import Path
|
||||
from types import SimpleNamespace
|
||||
|
||||
import asyncio
|
||||
import pytest
|
||||
|
||||
from genesis.server.store import SessionStore, ProjectsStore
|
||||
@@ -248,7 +249,7 @@ def test_existing_system_zip_triggers_impact_flow(tmp_path):
|
||||
svc.confirm_parse(s.session_id)
|
||||
assert svc.get_session(s.session_id).status == "impact_running"
|
||||
|
||||
svc.run_impact(s.session_id)
|
||||
asyncio.run(svc.run_impact(s.session_id))
|
||||
got = svc.get_session(s.session_id)
|
||||
assert got.status == "awaiting_impact_confirm"
|
||||
assert got.impact_summary
|
||||
@@ -269,7 +270,7 @@ def test_impact_state_guard(svc):
|
||||
svc.confirm_parse(s.session_id)
|
||||
# 无既有系统 → writing,start-impact 应报错
|
||||
with pytest.raises(ServiceStepError):
|
||||
svc.run_impact(s.session_id)
|
||||
asyncio.run(svc.run_impact(s.session_id))
|
||||
|
||||
|
||||
def test_qa_requires_generated(svc):
|
||||
|
||||
Reference in New Issue
Block a user