test: align safety contracts and isolate owned native fixtures

This commit is contained in:
阿白叔 committed 2026-11-08 19:37:57 +08:00
1 parent 422d5483bc
commit c3a6e59420
5 files changed
+93 -8

No files matched your search

+2
View File
@@ -145,6 +145,8 @@ def worker_runtime(tmp_path, monkeypatch, monitor):
from dx_productivity.trial_task_center.batch_runtime import BatchCadRuntime
from dx_productivity.trial_task_center import worker_monitor
monkeypatch.setattr(worker_monitor, 'run_monitored_process', monitor)
Desktop.created = []
Desktop.fail_release = False
Cad.created = []
return BatchCadRuntime(tmp_path / 'data', 'execution', desktop_factory=Desktop, cad_factory=Cad)