def test_successful_after_retry(self):
        """Test that function retries and succeeds."""
        mock_response = MagicMock()
        mock_response.status_code = 503
        func = MagicMock(side_effect=[(False, mock_response), (True, "success")])
        result = _retry_with_backoff("operation", func)
        self.assertEqual(result, "success")
        self.assertEqual(func.call_count, 2)
        self.mock_sleep.assert_called_once_with(1)  # First retry delay
Test that function retries and succeeds.
tests/unit/test_artifact_upload.py