def complete_uow():
    """Create a more complete unit of work for integration testing."""
    mock = MagicMock(spec=UnitOfWork)
    mock.session = AsyncMock(spec=AsyncSession)
    mock.commit = AsyncMock()
    mock.rollback = AsyncMock()
    mock.__aenter__ = AsyncMock(return_value=mock)
    mock.__aexit__ = AsyncMock(return_value=None)
    return mock
Create a more complete unit of work for integration testing.
backend/tests/unit/platform/sync/test_service_integration.py