airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From criccom...@apache.org
Subject [07/36] incubator-airflow git commit: [AIRFLOW-1054] Fix broken import in test_dag
Date Tue, 09 May 2017 17:35:36 GMT
[AIRFLOW-1054] Fix broken import in test_dag

Closes #2201 from
r39132/fix_broken_import_on_test_dag

(cherry picked from commit c64e876bd50eeb6c9e2600ac9d832c05eb5e9640)


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/68b1c982
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/68b1c982
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/68b1c982

Branch: refs/heads/v1-8-stable
Commit: 68b1c982e048878ec9dd658072c147e4341bf2c2
Parents: 5eb3335
Author: Siddharth Anand <siddharthanand@yahoo.com>
Authored: Mon Apr 3 13:10:51 2017 -0700
Committer: Chris Riccomini <criccomini@apache.org>
Committed: Mon Apr 3 13:11:42 2017 -0700

----------------------------------------------------------------------
 dags/test_dag.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/68b1c982/dags/test_dag.py
----------------------------------------------------------------------
diff --git a/dags/test_dag.py b/dags/test_dag.py
index db0b648..f2a9f6a 100644
--- a/dags/test_dag.py
+++ b/dags/test_dag.py
@@ -12,6 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+from airflow import utils
 from airflow import DAG
 from airflow.operators.dummy_operator import DummyOperator
 from datetime import datetime, timedelta
@@ -24,7 +25,7 @@ DAG_NAME = 'test_dag_v1'
 default_args = {
     'owner': 'airflow',
     'depends_on_past': True,
-    'start_date': airflow.utils.dates.days_ago(2)
+    'start_date': utils.dates.days_ago(2)
 }
 dag = DAG(DAG_NAME, schedule_interval='*/10 * * * *', default_args=default_args)
 


Mime
View raw message