async def test_get_sync_job_not_found(self, mock_db, mock_user):
        """Test getting a sync job that doesn't exist."""
        # Arrange
        sync_id = uuid.uuid4()
        job_id = uuid.uuid4()

        with patch.object(sync_service, "get_sync_job", new_callable=AsyncMock) as mock_get_job:
            mock_get_job.side_effect = HTTPException(status_code=404, detail="Sync job not found")

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

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