You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by bo...@apache.org on 2017/03/13 04:45:18 UTC

[20/45] incubator-airflow git commit: [AIRFLOW-831] Restore import to fix broken tests

[AIRFLOW-831] Restore import to fix broken tests

The global `models` object is used in the code and
was inadvertently
removed. This PR restores it

Closes #2050 from jlowin/fix-broken-tests


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

Branch: refs/heads/v1-8-stable
Commit: e1d0adb61d6475154ada7347ea30404f0680e779
Parents: 2592024
Author: Jeremiah Lowin <jl...@apache.org>
Authored: Thu Feb 2 11:56:22 2017 -0500
Committer: Bolke de Bruin <bo...@Bolkes-MacBook-Pro.local>
Committed: Sun Mar 12 07:58:12 2017 -0700

----------------------------------------------------------------------
 tests/jobs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/e1d0adb6/tests/jobs.py
----------------------------------------------------------------------
diff --git a/tests/jobs.py b/tests/jobs.py
index 44087e1..e520b44 100644
--- a/tests/jobs.py
+++ b/tests/jobs.py
@@ -26,7 +26,7 @@ import six
 import sys
 from tempfile import mkdtemp
 
-from airflow import AirflowException, settings
+from airflow import AirflowException, settings, models
 from airflow.bin import cli
 from airflow.jobs import BackfillJob, SchedulerJob
 from airflow.models import DAG, DagModel, DagBag, DagRun, Pool, TaskInstance as TI