feat(controller): Implement @property and @setter for ai_status and mma_status

This commit is contained in:
2026-05-09 08:32:28 -04:00
parent 13373f88df
commit 6bec4b86ef
2 changed files with 39 additions and 19 deletions
+9
View File
@@ -6,3 +6,12 @@ def test_status_attributes_exist():
assert hasattr(controller, '_mma_status')
assert controller._ai_status == 'idle'
assert controller._mma_status == 'idle'
def test_status_properties():
controller = app_controller.AppController()
controller.ai_status = 'busy'
assert controller._ai_status == 'busy'
assert any(t.get('action') == 'set_ai_status' and t.get('value') == 'busy' for t in controller._pending_gui_tasks)
controller.mma_status = 'active'
assert controller._mma_status == 'active'
assert any(t.get('action') == 'set_mma_status' and t.get('value') == 'active' for t in controller._pending_gui_tasks)