def test_non_retryable_status_code(self):
        """Test that non-retryable status codes raise immediately."""
        mock_response = MagicMock()
        mock_response.status_code = 400  # Not in retry_codes
        func = MagicMock(return_value=(False, mock_response))
        with self.assertRaises(DbtBaseException) as context:
            _retry_with_backoff("operation", func)
        self.assertIn("Error operation", str(context.exception))
        self.assertEqual(func.call_count, 1)
        self.mock_sleep.assert_not_called()
Test that non-retryable status codes raise immediately.
tests/unit/test_artifact_upload.py