Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
dstandish committed Nov 25, 2024
1 parent 88832d2 commit 21e660f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/models/test_baseoperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
from airflow.exceptions import AirflowException, TaskDeferralTimeout
from airflow.lineage.entities import File
from airflow.models.baseoperator import (
TRIGGER_TIMEOUT_REPR,
BaseOperator,
chain,
chain_linear,
Expand All @@ -41,6 +40,7 @@
from airflow.models.dag import DAG
from airflow.models.dagrun import DagRun
from airflow.models.taskinstance import TaskInstance
from airflow.models.trigger import TriggerFailureReason
from airflow.providers.common.sql.operators import sql
from airflow.utils.edgemodifier import Label
from airflow.utils.task_group import TaskGroup
Expand Down Expand Up @@ -588,7 +588,7 @@ def test_resume_execution(self):
with pytest.raises(TaskDeferralTimeout):
op.resume_execution(
next_method="__fail__",
next_kwargs={"error": TRIGGER_TIMEOUT_REPR},
next_kwargs={"error": TriggerFailureReason.TRIGGER_TIMEOUT},
context={},
)

Expand Down

0 comments on commit 21e660f

Please sign in to comment.