Skip to content

Commit

Permalink
[AIRFLOW-1837] Respect task start_date when different from dag's (#4010)
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-asana authored and kaxil committed Jan 9, 2019
1 parent 562f6df commit 1358db4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2078,14 +2078,14 @@ def test_dag_view_task_with_python_operator_using_partial(self):
response = self.app.get(
'/admin/airflow/task?'
'task_id=test_dagrun_functool_partial&dag_id=test_task_view_type_check&'
'execution_date={}'.format(DEFAULT_DATE_DS))
'execution_date={}'.format(EXAMPLE_DAG_DEFAULT_DATE))
self.assertIn("A function with two args", response.data.decode('utf-8'))

def test_dag_view_task_with_python_operator_using_instance(self):
response = self.app.get(
'/admin/airflow/task?'
'task_id=test_dagrun_instance&dag_id=test_task_view_type_check&'
'execution_date={}'.format(DEFAULT_DATE_DS))
'execution_date={}'.format(EXAMPLE_DAG_DEFAULT_DATE))
self.assertIn("A __call__ method", response.data.decode('utf-8'))

def tearDown(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/www_rbac/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def test_paused(self):
def test_failed(self):
url = ('failed?task_id=run_this_last&dag_id=example_bash_operator&'
'execution_date={}&upstream=false&downstream=false&future=false&past=false'
.format(self.percent_encode(self.default_date)))
.format(self.percent_encode(self.EXAMPLE_DAG_DEFAULT_DATE)))
resp = self.client.get(url)
self.check_content_in_response('Wait a minute', resp)

Expand Down

0 comments on commit 1358db4

Please sign in to comment.