kaxil commented on a change in pull request #5928: [AIRFLOW-5168] Fix Dataproc 
Operators & add tests
URL: https://github.com/apache/airflow/pull/5928#discussion_r318542528
 
 

 ##########
 File path: tests/contrib/operators/test_dataproc_operator.py
 ##########
 @@ -40,18 +43,22 @@
 from airflow.exceptions import AirflowTaskTimeout
 from airflow.utils.timezone import make_aware
 from airflow.version import version
-from tests.compat import mock
+from tests.compat import mock, PropertyMock
 
 from copy import deepcopy
 
 from mock import MagicMock, Mock
 from mock import patch
 
+DAG_ID = 'test_dag'
 TASK_ID = 'test-dataproc-operator'
-CLUSTER_NAME = 'test-cluster-name'
+CLUSTER_NAME = 'airflow_{}_cluster'.format(DAG_ID)
+CLUSTER_NAME_TEMPLATED = 'airflow_{{ dag.dag_id }}_cluster'
 
 Review comment:
   @Fokko here

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to