Repository: incubator-airflow Updated Branches: refs/heads/v1-8-test 5eb33358f -> 68b1c982e
[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-test Commit: 68b1c982e048878ec9dd658072c147e4341bf2c2 Parents: 5eb3335 Author: Siddharth Anand <[email protected]> Authored: Mon Apr 3 13:10:51 2017 -0700 Committer: Chris Riccomini <[email protected]> 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)
