async def test_list_sync_jobs_found(self, mock_db, mock_user, mock_sync, mock_sync_job):
        """Test listing jobs for a sync that exists."""
        # Arrange
        sync_id = mock_sync.id
        with patch.object(sync_service, "list_sync_jobs", new_callable=AsyncMock) as mock_list_jobs:
            mock_list_jobs.return_value = [mock_sync_job]

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

            # Assert
            mock_list_jobs.assert_called_once_with(
                db=mock_db, current_user=mock_user, sync_id=sync_id
            )
            assert result == [mock_sync_job]
Test listing jobs for a sync that exists.
backend/tests/unit/api/test_sync.py