radhwene commented on PR #61148: URL: https://github.com/apache/airflow/pull/61148#issuecomment-3907874121
Hi @shahar1 , Thanks for the review! I've added the unit tests for the exception handling cases. ### Sensor tests (`test_bigquery.py`) | Test | Description | |------|-------------| | `test_poke_table_not_found` | Raises `AirflowException` when the table doesn't exist | | `test_poke_raises_on_unexpected_error` | Re-raises unexpected exceptions from the BigQuery client | | `test_execute_complete_no_event` | Raises `AirflowException` when no event is received in the trigger callback | | `test_execute_complete_error_event` | Raises `AirflowException` when trigger returns an error status | ### Trigger tests (`test_bigquery.py`) | Test | Description | |------|-------------| | `test_run_raises_on_table_not_found` | Yields error event when table returns 404 | | `test_run_raises_on_exception` | Yields error event on unexpected exceptions | | `test_is_streaming_buffer_empty_table_not_exists` | Raises `AirflowException` when table response is empty | <img width="1536" height="383" alt="image" src="https://github.com/user-attachments/assets/8225ff7e-09b2-4db8-b6d5-2a8b992fa0cc" /> -- 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]
