Merge pull request #718 from christianlouis/perf-upload-15584535240168516797

 Optimize file upload endpoint to use asynchronous aiofiles
This commit is contained in:
Christian Krakau-Louis
2026-03-16 10:55:57 +01:00
committed by GitHub
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ class TestUploadErrorHandling:
def test_upload_disk_write_failure(self, client: TestClient):
"""Test handling of disk write failures."""
with patch("builtins.open", side_effect=IOError("Disk full")):
with patch("aiofiles.open", side_effect=IOError("Disk full")):
pdf_content = b"%PDF-1.4\n%EOF"
response = client.post(