fix: persist native menus and validate every tool workflow
This commit is contained in:
1 parent
7a471fec24
commit
cd88a9950a
76 files changed
+4249
-264
No files matched your search
@@ -185,3 +185,22 @@ def test_missing_heartbeat_fails_transaction(
|
||||
|
||||
with qtbot.waitSignal(controller.apply_failed, timeout=5000):
|
||||
controller._poll_apply_status()
|
||||
|
||||
|
||||
def test_schedule_write_failure_does_not_lock_future_annotation(
|
||||
qtbot, tmp_path, snapshot_factory, monkeypatch
|
||||
):
|
||||
import pytest
|
||||
controller = _make_controller(qtbot, tmp_path, snapshot_factory())
|
||||
|
||||
def fail_write(*args):
|
||||
raise OSError("mailbox is read-only")
|
||||
|
||||
monkeypatch.setattr(controller_module, "write_schedule", fail_write)
|
||||
with pytest.raises(OSError, match="read-only"):
|
||||
controller.apply()
|
||||
|
||||
assert not controller._apply_in_flight
|
||||
assert controller.can_apply
|
||||
assert not controller._status_timer.isActive()
|
||||
assert not controller.run_paths.result.exists()
|
||||
Reference in new issue
Block a user