async def test_run_setup_flow(self, mock_print, mock_modify_settings):
        """Test that the setup flow calls the modify_llm_settings_basic function."""
        # Setup
        config = MagicMock(spec=OpenHandsConfig)
        settings_store = MagicMock(spec=FileSettingsStore)
        mock_modify_settings.return_value = None

        # Mock settings_store.load to return a settings object
        settings = MagicMock()
        settings_store.load = AsyncMock(return_value=settings)

        # Execute
        result = await run_setup_flow(config, settings_store)

        # Verify
        mock_modify_settings.assert_called_once_with(config, settings_store)
        # Verify that print_formatted_text was called at least twice (for welcome message and instructions)
        self.assertGreaterEqual(mock_print.call_count, 2)
        # Verify that the function returns True when settings are found
        self.assertTrue(result)
Test that the setup flow calls the modify_llm_settings_basic function.
tests/unit/test_cli_setup_flow.py