This is an automated email from the ASF dual-hosted git repository. jhtimmins pushed a commit to branch v2-1-test in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v2-1-test by this push: new c37de28 Add State types for tasks and DAGs (#15285) c37de28 is described below commit c37de2832f92c10e73678c8ab9ce21e8981fd2e0 Author: Andrew Godwin <andrew.god...@astronomer.io> AuthorDate: Tue Jul 6 17:36:01 2021 -0600 Add State types for tasks and DAGs (#15285) This adds TaskState and DagState enum types that contain all possible states, makes all other core state constants derive their values from them, and adds a couple of initial type hints that use the new enums (with the plan being that we can add signficantly more later). closes: #9387 (cherry picked from commit 2b7c59619b7dd6fd5031745ade7756466456f803) --- tests/www/views/test_views_tasks.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/www/views/test_views_tasks.py b/tests/www/views/test_views_tasks.py index 88f881c..dcf0b1d 100644 --- a/tests/www/views/test_views_tasks.py +++ b/tests/www/views/test_views_tasks.py @@ -33,6 +33,7 @@ from airflow.utils.log.logging_mixin import ExternalLoggingMixin from airflow.utils.session import create_session from airflow.utils.state import State from airflow.utils.types import DagRunType +from airflow.www.views import TaskInstanceModelView from tests.test_utils.config import conf_vars from tests.test_utils.db import clear_db_runs from tests.test_utils.www import check_content_in_response, check_content_not_in_response @@ -643,17 +644,6 @@ def test_task_instance_clear(session, admin_client): assert state == State.NONE -def test_task_instance_clear_failure(admin_client): - rowid = '["12345"]' # F.A.B. crashes if the rowid is *too* invalid. - resp = admin_client.post( - "/taskinstance/action_post", - data={"action": "clear", "rowid": rowid}, - follow_redirects=True, - ) - assert resp.status_code == 200 - check_content_in_response("Failed to clear task instances:", resp) - - @pytest.mark.parametrize( "action, expected_state", [