refactor backend module architecture

This commit is contained in:
jxxghp
2026-08-14 15:45:38 +08:00
parent 557cc0e2e3
commit 7b3444c366
716 changed files with 10378 additions and 7709 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ import pytest
from PIL import Image
from app.api.endpoints import system as system_endpoint
from app.helper.image import ImageHelper
from app.services.image import ImageHelper
def _image_bytes(image_format: str, trailing: bytes = b"") -> bytes:
@@ -78,7 +78,7 @@ def test_fetch_image_with_mime_type_validates_network_content_once():
image_helper.file_cache,
"set",
), patch(
"app.helper.image.RequestUtils",
"app.services.image.RequestUtils",
return_value=request,
), patch.object(
image_helper,
@@ -132,7 +132,7 @@ def test_async_fetch_image_with_mime_type_validates_network_content_once():
"set",
new=AsyncMock(),
), patch(
"app.helper.image.AsyncRequestUtils",
"app.services.image.AsyncRequestUtils",
return_value=request,
), patch.object(
image_helper,