chore/ 删除无用文件

This commit is contained in:
Kevin
2026-03-19 14:36:14 +08:00
parent 2f60858c9c
commit c6e07ce5ca
135 changed files with 2111 additions and 4510 deletions

View File

@@ -31,7 +31,9 @@ class PDFServiceImagesTest(unittest.IsolatedAsyncioTestCase):
async_client_cls.return_value.__aenter__ = AsyncMock(return_value=mock_client)
async_client_cls.return_value.__aexit__ = AsyncMock(return_value=False)
storage = MagicMock()
storage.get_download_url.return_value = "https://signed.example.com/0.png?sig=123"
storage.get_download_url.return_value = (
"https://signed.example.com/0.png?sig=123"
)
storage_cls.from_env.return_value = storage
reportlab_image_cls.return_value = MagicMock()
@@ -82,7 +84,9 @@ class PDFServiceImagesTest(unittest.IsolatedAsyncioTestCase):
async_client_cls.return_value.__aenter__ = AsyncMock(return_value=mock_client)
async_client_cls.return_value.__aexit__ = AsyncMock(return_value=False)
storage = MagicMock()
storage.get_download_url.return_value = "https://signed.example.com/0.png?sig=123"
storage.get_download_url.return_value = (
"https://signed.example.com/0.png?sig=123"
)
storage_cls.from_env.return_value = storage
service = PDFService()
@@ -109,7 +113,9 @@ class PDFServiceImagesTest(unittest.IsolatedAsyncioTestCase):
self.assertGreater(len(pdf_bytes), 100)
self.assertNotIn(b"IMAGE:", pdf_bytes)
mock_client.get.assert_called_once_with("https://signed.example.com/0.png?sig=123")
mock_client.get.assert_called_once_with(
"https://signed.example.com/0.png?sig=123"
)
@patch("app.features.memoir.pdf_service.httpx.AsyncClient")
@patch("app.features.memoir.pdf_service.TencentCosStorageService")