Skip to content

Conversation

@KL-2300032590
Copy link

This PR adds validation-focused unit tests for GenAIGenerateContentOperator
to ensure the operator fails fast when required parameters are missing.

This work contributes to #61261.

Notes:

@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Jan 30, 2026
Copy link
Contributor

@shahar1 shahar1 left a comment

Choose a reason for hiding this comment

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

Good start!
Personally I don't find the tests you've implemented too practical, as ususally the type hints help us with figuring out such discrepancies (you could retain the tests though, they're not harmful 🙂).
Could you please try to test the execute method for the case where all required parameters are given?
Try to look at unit tests of other providers and learn how mocking works.
Please let me know if you need some direction.

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