Allegati delle note verso /api/task-results/attachments (#55)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VNVrf2wZAmMAkgmwEuBB36
This commit is contained in:
2026-10-07 13:12:47 +02:00
parent d750cf9e0e
commit 6a8ad4dae4
2 changed files with 2 additions and 2 deletions
@@ -160,7 +160,7 @@ def test_attachment_upload_forwards_multipart(logged_in_client, mock_api_client)
assert resp.status_code == 201
assert resp.get_json()["file_path"] == "general/foto.png"
args, kwargs = mock_api_client.post.call_args
assert args[0] == "/api/files/upload"
assert args[0] == "/api/task-results/attachments" # #55
name, content, mime = kwargs["files"]["file"]
assert name == "foto.png" and mime == "image/png" and content.startswith(b"\x89PNG")