async def test_get_sync_dag_not_found(self, mock_db, mock_user):
        """Test getting a sync DAG that doesn't exist."""
        # Arrange
        sync_id = uuid.uuid4()
        with patch.object(sync_service, "get_sync_dag", new_callable=AsyncMock) as mock_get_dag:
            mock_get_dag.side_effect = HTTPException(
                status_code=404, detail=f"DAG for sync {sync_id} not found"
            )

            # Act & Assert
            with pytest.raises(HTTPException) as exc_info:
                await sync.get_sync_dag(sync_id=sync_id, db=mock_db, user=mock_user)

            assert exc_info.value.status_code == 404
            assert exc_info.value.detail == f"DAG for sync {sync_id} not found"
Test getting a sync DAG that doesn't exist.
backend/tests/unit/api/test_sync.py