fix: address PCB access review in CLI and desktop

This commit was merged in pull request #20.
This commit is contained in:
阿白叔 committed 2026-11-23 12:10:30 +08:00
1 parent 2d6acc1180
commit 7c239e123b
11 files changed
+151 -16

No files matched your search

+14
View File
@@ -166,3 +166,17 @@ def test_retained_mapping_logs_context_and_confirmed_release_guidance(batch_cli,
assert 'Z:' in notice and r'\\server\share' in notice
assert '释放残留会话' in notice and '确认' in notice
assert 'net use' not in notice.lower()
def test_batch_cli_can_enable_verified_pcb_open(batch_cli, monkeypatch):
app, runner, _, _, _ = batch_cli
received = []
def run(requests, **kwargs):
received.extend(request.auto_confirm_pcb_open for request in requests)
return [VerifyResult('PASS') for _ in requests]
monkeypatch.setattr(runner, 'run_batch', run)
assert app.main(['--batch-lmc', 'lib.lmc', '--block', 'One']) == 0
assert app.main(['--batch-lmc', 'lib.lmc', '--block', 'One', '--auto-confirm-pcb-open']) == 0
assert received == [False, True]