Show AI structure path errors in HTML5
This commit is contained in:
@@ -1727,7 +1727,14 @@ def test_ai_structure_prepare_writes_ai_ready_package(tmp_path: Path):
|
||||
assert "Treat modules/forms/commands as parts" in (output / "ai_context.md").read_text(encoding="utf-8")
|
||||
|
||||
page = client.get("/html5/projects/ai-demo/ai-structure")
|
||||
assert_html5_response_contract(page, 'data-html5-page="ai-structure"', "Структура для ИИ", full_page=True)
|
||||
assert_html5_response_contract(
|
||||
page,
|
||||
'data-html5-page="ai-structure"',
|
||||
"Структура для ИИ",
|
||||
"192.168.220.200",
|
||||
"Пути должны быть доступны серверу",
|
||||
full_page=True,
|
||||
)
|
||||
|
||||
html5_run = client.post(
|
||||
"/html5/projects/ai-demo/ai-structure/run",
|
||||
@@ -1735,6 +1742,12 @@ def test_ai_structure_prepare_writes_ai_ready_package(tmp_path: Path):
|
||||
)
|
||||
assert_html5_response_contract(html5_run, "ready", "codex-1c-context-ai-demo-html5", "sir_snapshot.json", "normalized_project.json")
|
||||
|
||||
html5_missing = client.post(
|
||||
"/html5/projects/ai-demo/ai-structure/run",
|
||||
data={"project_id": "ai-demo-html5", "input_path": str(tmp_path / "missing"), "output_path": str(tmp_path / "html5-out")},
|
||||
)
|
||||
assert_html5_response_contract(html5_missing, "ошибка", "Input path not found")
|
||||
|
||||
|
||||
def test_ai_structure_prepare_reports_cf_cfe_export_required(tmp_path: Path):
|
||||
source = tmp_path / "cf-source"
|
||||
|
||||
Reference in New Issue
Block a user