async def test_list_syncs_with_source_connection(self, mock_db, mock_user, mock_sync):
        """Test listing syncs with source connection."""
        # Arrange
        mock_sync_with_source = schemas.SyncWithSourceConnection(
            **mock_sync.model_dump(),
            source_connection=schemas.Connection(
                id=uuid.uuid4(),
                name="Test Source",
                short_name="test",
                integration_type=IntegrationType.SOURCE,
                status=ConnectionStatus.ACTIVE,
                organization_id=uuid.uuid4(),
                created_by_email="test@example.com",
                modified_by_email="test@example.com",
            ),
        )

        with patch.object(sync_service, "list_syncs", new_callable=AsyncMock) as mock_list_syncs:
            mock_list_syncs.return_value = [mock_sync_with_source]

            # Act
            result = await sync.list_syncs(
                db=mock_db, skip=0, limit=100, with_source_connection=True, user=mock_user
            )

            # Assert
            mock_list_syncs.assert_called_once_with(
                db=mock_db, current_user=mock_user, skip=0, limit=100, with_source_connection=True
            )
            assert result == [mock_sync_with_source]
Test listing syncs with source connection.
backend/tests/unit/api/test_sync.py