Taragolis commented on code in PR #33731:
URL: https://github.com/apache/airflow/pull/33731#discussion_r1305719688
##########
tests/providers/microsoft/azure/operators/test_azure_batch.py:
##########
@@ -162,6 +162,7 @@ def setup_method(self, method, mock_batch, mock_hook):
self.batch_client = mock_batch.return_value
self.mock_instance = mock_hook.return_value
assert self.batch_client == self.operator.hook.connection
+ assert self.batch_client == self.operator2_pass.hook.connection
Review Comment:
I guess it refers to mocking, previously it was instantiate immediately, but
now you need to call it (cached).
I've plan also check entire provider for found the same instantiate
connection in hook/operators/sensors
--
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]