Skip to content

Commit

Permalink
Remove type hints only working in Airflow 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheffl committed Jan 11, 2025
1 parent fa03210 commit aafcc37
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/api/common/test_mark_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@
if TYPE_CHECKING:
from airflow.models.taskinstance import TaskInstance

from tests_common.pytest_plugin import DagMaker

pytestmark = pytest.mark.db_test


def test_set_dag_run_state_to_failed(dag_maker: DagMaker):
def test_set_dag_run_state_to_failed(dag_maker):
with dag_maker("TEST_DAG_1"):
with EmptyOperator(task_id="teardown").as_teardown():
EmptyOperator(task_id="running")
Expand All @@ -54,7 +52,7 @@ def test_set_dag_run_state_to_failed(dag_maker: DagMaker):
assert "teardown" not in task_dict


def test_set_dag_run_state_to_success(dag_maker: DagMaker):
def test_set_dag_run_state_to_success(dag_maker):
with dag_maker("TEST_DAG_1"):
with EmptyOperator(task_id="teardown").as_teardown():
EmptyOperator(task_id="running")
Expand Down

0 comments on commit aafcc37

Please sign in to comment.