Skip to content

Commit 68e2ea0

Browse files
dima-asanaChris Fei
authored and
Chris Fei
committed
Respect task start_date when different from dag's (apache#4010)
1 parent a95dc3c commit 68e2ea0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2078,14 +2078,14 @@ def test_dag_view_task_with_python_operator_using_partial(self):
20782078
response = self.app.get(
20792079
'/admin/airflow/task?'
20802080
'task_id=test_dagrun_functool_partial&dag_id=test_task_view_type_check&'
2081-
'execution_date={}'.format(DEFAULT_DATE_DS))
2081+
'execution_date={}'.format(EXAMPLE_DAG_DEFAULT_DATE))
20822082
self.assertIn("A function with two args", response.data.decode('utf-8'))
20832083

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

20912091
def tearDown(self):

tests/www_rbac/test_views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def test_paused(self):
409409
def test_failed(self):
410410
url = ('failed?task_id=run_this_last&dag_id=example_bash_operator&'
411411
'execution_date={}&upstream=false&downstream=false&future=false&past=false'
412-
.format(self.percent_encode(self.default_date)))
412+
.format(self.percent_encode(self.EXAMPLE_DAG_DEFAULT_DATE)))
413413
resp = self.client.get(url)
414414
self.check_content_in_response('Wait a minute', resp)
415415

0 commit comments

Comments
 (0)