amoghrajesh commented on code in PR #54083:
URL: https://github.com/apache/airflow/pull/54083#discussion_r2254384922
##########
providers/google/tests/unit/google/cloud/operators/test_dataflow.py:
##########
@@ -767,10 +776,11 @@ def test_invalid_project_id(self):
DataflowDeletePipelineOperator(**init_kwargs).execute(mock.MagicMock())
@pytest.mark.db_test
- def test_invalid_location(self):
+ def test_invalid_location(self, mock_supervisor_comms):
"""
Test that AirflowException is raised if Delete Operator is not given a
location.
"""
+ mock_supervisor_comms.send.return_value =
ErrorResponse(error=ErrorType.CONNECTION_NOT_FOUND)
Review Comment:
I pushed a change with a fixture I wrote.
https://github.com/apache/airflow/pull/54083/commits/523e0e43dfba075005ff398fda323a9637029a8a.
--
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]