fix(ui): guard project plan cleanup after qt child deletion

This commit is contained in:
阿白叔 committed 2026-11-01 22:53:59 +08:00
1 parent 8b8d2beefe
commit 51597ad9fc
3 files changed
+34

No files matched your search

+8
View File
@@ -10,6 +10,14 @@ from PySide6.QtCore import Signal
from PySide6.QtWidgets import QMessageBox,QWidget
def test_project_plan_discard_is_safe_after_qt_reclaims_report_control(ui, qtbot):
"""Fixture cleanup must tolerate a child control reclaimed during window teardown."""
import shiboken6
report_toggle = ui.window.plan_panel.report_toggle
shiboken6.delete(report_toggle)
ui.window.plan_panel.discard_all()
@pytest.mark.parametrize('scope',['single','batch'])
@pytest.mark.parametrize('stop_kind',['none','pause','force','pause_then_reauthorize'])
def test_last_failed_item_keeps_stop_intent_in_automatic_diagnosis(ui,qtbot,monkeypatch,scope,stop_kind):