async def test_get_sync_dag_found(self, mock_db, mock_user, mock_sync_dag):
        """Test getting a sync DAG that exists."""
        # Arrange
        sync_id = mock_sync_dag.sync_id
        with patch.object(sync_service, "get_sync_dag", new_callable=AsyncMock) as mock_get_dag:
            mock_get_dag.return_value = mock_sync_dag

            # Act
            result = await sync.get_sync_dag(sync_id=sync_id, db=mock_db, user=mock_user)

            # Assert
            mock_get_dag.assert_called_once_with(
                db=mock_db, sync_id=sync_id, current_user=mock_user
            )
            assert result == mock_sync_dag
Test getting a sync DAG that exists.
backend/tests/unit/api/test_sync.py