Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests_common/test_utils/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import contextlib
import json
import os
from typing import TYPE_CHECKING, Any, cast

from packaging.version import Version
Expand All @@ -43,6 +44,11 @@
AIRFLOW_V_2_10_PLUS = Version(AIRFLOW_VERSION.base_version) >= Version("2.10.0")
AIRFLOW_V_3_0_PLUS = Version(AIRFLOW_VERSION.base_version) >= Version("3.0.0")

if AIRFLOW_V_3_0_PLUS:
os.environ["AIRFLOW_ENABLE_AIP_44"] = os.environ.get("AIRFLOW_ENABLE_AIP_44", "true")
else:
os.environ["AIRFLOW_ENABLE_AIP_44"] = "false"

try:
from airflow.models.baseoperatorlink import BaseOperatorLink
except ImportError:
Expand Down