From 1358db406cfad05515419a2853efde7717a40a06 Mon Sep 17 00:00:00 2001 From: dima-asana <42555784+dima-asana@users.noreply.github.com> Date: Fri, 12 Oct 2018 00:14:47 -0700 Subject: [PATCH] [AIRFLOW-1837] Respect task start_date when different from dag's (#4010) --- tests/core.py | 4 ++-- tests/www_rbac/test_views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/core.py b/tests/core.py index a591f05139afa..f0c25dd898fd1 100644 --- a/tests/core.py +++ b/tests/core.py @@ -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): diff --git a/tests/www_rbac/test_views.py b/tests/www_rbac/test_views.py index 3d6841540628b..93f6bfd8f7142 100644 --- a/tests/www_rbac/test_views.py +++ b/tests/www_rbac/test_views.py @@ -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)