Taragolis commented on PR #36393:
URL: https://github.com/apache/airflow/pull/36393#issuecomment-1868470176

   It could be something like that.
   
   ```python
           with mock.patch.object(EcsBaseOperator, "hook", 
new_callable=mock.PropertyMock) as m:
               mocked_hook = mock.MagicMock(name="FakeHook")
               mocked_client = mock.MagicMock(name="FakeBoto3Client")
               mocked_hook.conn = mocked_client
               m.return_value = mocked_hook
   
               assert op.client == mocked_client
               m.assert_called_once()
   ```
   
   


-- 
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]

Reply via email to