fix: improve maintenance and synchronize live conversations

This commit is contained in:
WangShen007 committed 2026-10-29 09:46:21 +08:00
1 parent bb541bd212
commit ef86a5d3af
297 files changed
+2983 -1274

No files matched your search

@@ -16,9 +16,7 @@ limitations under the License.
import pytest
import base64
import os
import tempfile
from unittest.mock import Mock, patch, AsyncMock, MagicMock
from unittest.mock import Mock, patch, MagicMock
from uuid import uuid4
from app.services.file_upload_service import (
@@ -344,7 +342,7 @@ class TestFileUploadServiceUpload:
async def test_upload_file_local_write_failure(self, sample_file_data):
"""Test handling of local file write failure"""
with patch('app.services.file_upload_service.settings') as mock_settings, \
patch('os.makedirs') as mock_makedirs, \
patch('os.makedirs'), \
patch('builtins.open', create=True) as mock_open:
mock_settings.S3_FILE_STORAGE = False