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

View File

@@ -2,7 +2,7 @@ import threading
import time
from unittest.mock import MagicMock
from app.platform.log import LogEntry, NonBlockingFileHandler, log_settings
from app.runtime.log import LogEntry, NonBlockingFileHandler, log_settings
def test_non_blocking_file_handler_shutdown_wakes_writer_and_closes_handlers(tmp_path):
@@ -97,7 +97,7 @@ def test_non_blocking_file_handler_creates_one_handler_for_concurrent_first_writ
def close(self):
self.closed = True
monkeypatch.setattr("app.platform.log.RotatingFileHandler", ProbeHandler)
monkeypatch.setattr("app.runtime.log.RotatingFileHandler", ProbeHandler)
file_path = tmp_path / "concurrent.log"
def get_handler(started=None):