Use saved SMB credentials for AI structure
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user