mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-21 16:23:34 +08:00
refactor: reorganize backend module boundaries
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user