feat: integrate independent background checks and native management UI

This commit is contained in:
阿白叔 committed 2026-11-05 23:25:25 +08:00
1 parent da67de026f
commit 282be7be7f
27 files changed
+4716 -932

No files matched your search

+13
View File
@@ -174,6 +174,19 @@ def test_cli_unsafe_batch_preserves_created_drive(tmp_path, monkeypatch):
assert lease.drive in backend.existing
def test_ui_unsafe_batch_preserves_created_drive(qtbot, tmp_path):
from test_network_path import FakeWNet
from cbb_refresh_verify.network_path import LibraryPathLease
from cbb_refresh_verify.ui.main_window import MainWindow
backend = FakeWNet()
lease = LibraryPathLease.acquire(r'\\server\share\lib.lmc', backend=backend)
window = MainWindow(data_root=tmp_path)
qtbot.addWidget(window)
window.library_lease = lease
window._batch_done(([VerifyResult('FAIL', safe_to_continue=False)], tmp_path/'batch.log'))
window.close()
assert not backend.cancelled
assert lease.drive in backend.existing
def test_legacy_library_reader_only_requests_owned_window_close(monkeypatch):