Leondon9 opened a new pull request, #67058: URL: https://github.com/apache/airflow/pull/67058
Add focused unit tests for `CohereHook` behavior. This covers: - `create_embeddings` passing request options and expected embed call arguments - `create_embeddings` raising when float embeddings are missing - `test_connection` success and failure tuple behavior Tests: - `prek run ruff-format --files providers/cohere/tests/unit/cohere/hooks/test_cohere.py` - `prek run ruff --files providers/cohere/tests/unit/cohere/hooks/test_cohere.py` - `breeze run pytest providers/cohere/tests/unit/cohere/hooks/test_cohere.py -xvs` --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Codex (GPT-5) Generated-by: Codex (GPT-5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- 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]
