o-nikolas commented on code in PR #77563:
URL: https://github.com/apache/airflow/pull/77563#discussion_r4685583414
##########
providers/amazon/tests/unit/amazon/aws/operators/test_athena.py:
##########
@@ -305,6 +305,31 @@ def test_optional_output_location(self, mock_conn,
mock_run_query, mock_check_qu
MOCK_DATA["workgroup"],
)
+ @pytest.mark.parametrize(
+ "deferrable", [pytest.param(False, id="poll"), pytest.param(True,
id="deferrable")]
+ )
+ @mock.patch.object(AthenaHook, "poll_query_status", autospec=True,
return_value="SUCCEEDED")
+ @mock.patch.object(AthenaHook, "get_conn", autospec=True)
+ def test_execute_without_output_location_sends_no_result_configuration(
Review Comment:
nit: this one passes on main too, since the operator didn't change here, and
`test_optional_output_location` already checks that no result configuration is
built. Same for `test_get_sqlalchemy_engine_drops_other_empty_options` in
`test_athena_sql.py` (L196): main drops those empty options as well. I'd drop
both unless you really want them kept as guards.
--
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]