Use saved SMB credentials for AI structure
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-21 23:43:40 +03:00
parent 9ea2ff5518
commit 65a1437c7c
7 changed files with 300 additions and 15 deletions
+12
View File
@@ -1733,6 +1733,8 @@ def test_ai_structure_prepare_writes_ai_ready_package(tmp_path: Path):
"Структура для ИИ",
"192.168.220.200",
"Пути должны быть доступны серверу",
"smb_username",
"smb_password",
full_page=True,
)
@@ -1748,6 +1750,16 @@ def test_ai_structure_prepare_writes_ai_ready_package(tmp_path: Path):
)
assert_html5_response_contract(html5_missing, "ошибка", "Input path not found")
html5_smb_without_credentials = client.post(
"/html5/projects/ai-demo/ai-structure/run",
data={
"project_id": "ai-demo-html5",
"input_path": r"\\192.168.220.200\mst\1c\MARKA\CODEX\CF",
"output_path": r"\\192.168.220.200\mst\1c\MARKA\CODEX\CODEX",
},
)
assert_html5_response_contract(html5_smb_without_credentials, "ошибка", "логин и пароль SMB")
def test_ai_structure_prepare_reports_cf_cfe_export_required(tmp_path: Path):
source = tmp_path / "cf-source"