openhands bb064e9907 Fix unit tests for background delete conversation process
- Update delete_conversation function to use BackgroundTasks parameter
- Add sandbox_service parameter for V1 conversation handling
- Fix all 6 conversation deletion tests to work with background task pattern
- Update test mocks to use AsyncMock for proper async function testing
- Add proper exception handling for V1 deletion with V0 fallback

Fixes failing tests:
- test_delete_conversation
- test_delete_v1_conversation_success
- test_delete_v1_conversation_not_found
- test_delete_v1_conversation_invalid_uuid
- test_delete_v1_conversation_service_error
- test_delete_v1_conversation_with_agent_server

Co-authored-by: openhands <openhands@all-hands.dev>
2025-11-14 12:42:33 +00:00
..