KL-2300032590 commented on code in PR #61262:
URL: https://github.com/apache/airflow/pull/61262#discussion_r2747210933
##########
providers/google/tests/unit/google/cloud/operators/test_gen_ai.py:
##########
@@ -507,3 +509,29 @@ def test_execute(self, mock_hook):
mock_hook.return_value.delete_file.assert_called_once_with(
file_name=TEST_FILE_NAME,
)
+
+
+class TestGenAIGenerateContentOperatorValidation:
+ def test_missing_project_id_raises_error(self):
+ with pytest.raises(Exception):
Review Comment:
I’ve updated the validation tests to use TypeError and added a happy-path
execute() test for GenAIGenerateContentOperator with explicit hook mocking.
Please let me know if this looks good.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]