dazza-codes commented on a change in pull request #6811: [RFC][AIRFLOW-6245] Add custom waiters for AWS batch jobs URL: https://github.com/apache/airflow/pull/6811#discussion_r361020889
########## File path: tests/test_core_to_contrib.py ########## @@ -757,6 +757,11 @@ "airflow.providers.amazon.aws.operators.batch.AwsBatchOperator", "airflow.contrib.operators.awsbatch_operator.AWSBatchOperator", ), + # # Leave this out to avoid TypeError: Instance and class checks can only be used with @runtime protocols + # ( + # "airflow.providers.amazon.aws.hooks.batch_client.AwsBatchProtocol", + # "airflow.contrib.operators.awsbatch_operator.BatchProtocol", + # ), Review comment: That solution works, but another check requires the moved class to be instantiated and that incurs `TypeError: Protocols cannot be instantiated` so the test class needs a bunch of special methods for Protocols. ---------------------------------------------------------------- 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