feluelle commented on a change in pull request #7541: [AIRFLOW-6822] AWS hooks should cache boto3 client URL: https://github.com/apache/airflow/pull/7541#discussion_r385142816
########## File path: tests/providers/amazon/aws/operators/test_ecs.py ########## @@ -48,12 +48,10 @@ ] } - +# pylint: disable=unused-argument +@mock.patch('airflow.providers.amazon.aws.operators.ecs.AwsBaseHook') Review comment: That's weird. It should work. 1. `@mock.patch('airflow.providers.amazon.aws.operators.ecs.AwsBaseHook')` 2. `self.aws_hook_mock = aws_hook_mock` 3. Access the mocked hook `self.aws_hook_mock` in the tests ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services