def test_successful_first_try(self):
        """Test that function returns immediately on success."""
        func = MagicMock(return_value=(True, "success"))
        result = _retry_with_backoff("operation", func)
        self.assertEqual(result, "success")
        func.assert_called_once()
        self.mock_sleep.assert_not_called()
Test that function returns immediately on success.
tests/unit/test_artifact_upload.py