This is an automated email from the ASF dual-hosted git repository.
vincbeck pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 6e3118a39f Remove `AIRFLOW_V_2_7_PLUS` constant (#42627)
6e3118a39f is described below
commit 6e3118a39f5ed0b3e5d57fb65b3e71c030d68d6d
Author: Vincent <[email protected]>
AuthorDate: Tue Oct 1 15:37:19 2024 -0400
Remove `AIRFLOW_V_2_7_PLUS` constant (#42627)
---
contributing-docs/testing/unit_tests.rst | 4 ++--
tests/test_utils/compat.py | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/contributing-docs/testing/unit_tests.rst
b/contributing-docs/testing/unit_tests.rst
index 935a7b9b60..cc6513eaa2 100644
--- a/contributing-docs/testing/unit_tests.rst
+++ b/contributing-docs/testing/unit_tests.rst
@@ -1184,10 +1184,10 @@ are not part of the public API. We deal with it in one
of the following ways:
.. code-block:: python
- from tests.test_utils.compat import AIRFLOW_V_2_7_PLUS
+ from tests.test_utils.compat import AIRFLOW_V_2_8_PLUS
- @pytest.mark.skipif(not AIRFLOW_V_2_7_PLUS, reason="The tests should be
skipped for Airflow < 2.7")
+ @pytest.mark.skipif(not AIRFLOW_V_2_8_PLUS, reason="The tests should be
skipped for Airflow < 2.8")
def some_test_that_only_works_for_airflow_2_7_plus():
pass
diff --git a/tests/test_utils/compat.py b/tests/test_utils/compat.py
index ca1d7e9c77..09f3653db8 100644
--- a/tests/test_utils/compat.py
+++ b/tests/test_utils/compat.py
@@ -42,7 +42,6 @@ except ImportError:
from airflow import __version__ as airflow_version
AIRFLOW_VERSION = Version(airflow_version)
-AIRFLOW_V_2_7_PLUS = Version(AIRFLOW_VERSION.base_version) >= Version("2.7.0")
AIRFLOW_V_2_8_PLUS = Version(AIRFLOW_VERSION.base_version) >= Version("2.8.0")
AIRFLOW_V_2_9_PLUS = Version(AIRFLOW_VERSION.base_version) >= Version("2.9.0")
AIRFLOW_V_2_10_PLUS = Version(AIRFLOW_VERSION.base_version) >=
Version("2.10.0")