fix: harden PCB and iCDB verification lifecycle for beta release

This commit is contained in:
阿白叔 committed 2026-10-26 15:32:01 +08:00
1 parent 11a2b2e46e
commit a11eb3c766
33 files changed
+1226 -267

No files matched your search

+2 -2
View File
@@ -89,7 +89,7 @@ def test_dialog_handling_only_posts_button_clicks():
text = (SOURCE_ROOT/'mentor_adapter.py').read_text(encoding='utf-8')
assert 'BM_CLICK' in text
# The only posted messages are the documented dialog button clicks.
assert text.count('PostMessage') == 1
assert 'win32con.WM_CLOSE' in text
def test_desktop_worker_close_kills_unbound_worker_tree():
@@ -108,5 +108,5 @@ def test_verification_never_deletes_or_moves_library_files():
assert 'shutil.rmtree(backup)' in adapter
# The only library-side mutation is quarantining the volatile, unreachable
# cdbsvr address advertisement; stable CBB content remains untouched.
assert adapter.count('shutil.move') == 1
assert 'shutil.move' not in adapter
assert "sAddress.adr" in adapter