async def test_get_sync_job_found(self, mock_db, mock_user, mock_sync_job):
        """Test getting a sync job that exists."""
        # Arrange
        sync_id = uuid.uuid4()
        job_id = mock_sync_job.id
        mock_sync_job.sync_id = sync_id

        with patch.object(sync_service, "get_sync_job", new_callable=AsyncMock) as mock_get_job:
            mock_get_job.return_value = mock_sync_job

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

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