Skip to content

Conversation

@dv-gorasiya
Copy link

This PR adds exception tests for GenAICountTokensOperator as part of issue #61261. The test verifies that exceptions raised by the hook are properly propagated.

Operator selected: GenAICountTokensOperator (as commented on the issue).

Test covers ClientError exception from the google.genai.errors module.

@dv-gorasiya dv-gorasiya requested a review from shahar1 as a code owner February 3, 2026 13:07
@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Feb 3, 2026
Copy link
Contributor

@SameerMesiah97 SameerMesiah97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Just 2 tiny suggestions for extra polish to make the test more explicit.

- Rename test_execute_exception to test_execute_propagates_client_error
- Update docstring to specify ClientError instead of generic exceptions
@dv-gorasiya
Copy link
Author

Applied suggestions: renamed test method and updated docstring as suggested. Thanks @SameerMesiah97!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants