shahar1 opened a new pull request, #73148: URL: https://github.com/apache/airflow/pull/73148
related: #61009 ## Human Summary As part of preparation to handle #61009, I've encountered a bug caused by a typo. Added some unit tests. ## AI Summary <details><summary>Click here</summary> `StackdriverHook.list_alert_policies(format_="json")` called `AlertPolicy.to_jsoon`, a method that does not exist, so every caller requesting JSON output hit an `AttributeError`. No test exercised the `"json"` (or `"dict"`) branch, so the typo went undetected since the original hook was added. Fixes the typo (`to_jsoon` -> `to_json`) and adds parametrized coverage for all three `format_` branches (`None`, `"dict"`, `"json"`). </details> --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Sonnet 5) Generated-by: Claude Code (Sonnet 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]
