async def test_list_sync_jobs_sync_not_found(self, mock_db, mock_user):
        """Test listing jobs for a sync that doesn't exist."""
        # Arrange
        sync_id = uuid.uuid4()
        with patch.object(sync_service, "list_sync_jobs", new_callable=AsyncMock) as mock_list_jobs:
            mock_list_jobs.side_effect = HTTPException(status_code=404, detail="Sync not found")

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

            assert exc_info.value.status_code == 404
            assert exc_info.value.detail == "Sync not found"
Test listing jobs for a sync that doesn't exist.
backend/tests/unit/api/test_sync.py