refactor: reorganize backend module boundaries

This commit is contained in:
jxxghp
2026-08-14 19:53:33 +08:00
parent fe0b444ceb
commit 369d7d6448
584 changed files with 2423 additions and 2275 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ from unittest.mock import patch
from app.chain.transfer import TransferChain
from app.schemas import FileItem, TransferDirectoryConf, TransferTask
from app.infrastructure.system import SystemUtils
from app.adapters.system.host import SystemUtils
def _make_task(
@@ -137,8 +137,8 @@ def test_cleanup_detection_includes_local_fuse_mounts():
stdout="Filesystem Type 1K-blocks Used Available Use% Mounted on\n"
"shfs fuse.shfs 1 1 1 1% /mnt/user\n",
)
with patch("app.infrastructure.system.platform.system", return_value="Linux"), patch(
"app.infrastructure.system.subprocess.run", return_value=df_result
with patch("app.adapters.system.host.platform.system", return_value="Linux"), patch(
"app.adapters.system.host.subprocess.run", return_value=df_result
):
assert SystemUtils.is_network_filesystem(Path("/mnt/user")) is False
assert SystemUtils.is_network_filesystem(