import src.app_controller as app_controller

def test_status_attributes_exist():
 controller = app_controller.AppController()
 assert hasattr(controller, '_ai_status')
 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'
 # No longer using tasks for simple status updates as ImGui reads them directly
 assert not any(t.get('action') == 'set_ai_status' for t in controller._pending_gui_tasks)
 controller.mma_status = 'active'
 assert controller._mma_status == 'active'
 assert not any(t.get('action') == 'set_mma_status' for t in controller._pending_gui_tasks)
