uranusjr commented on code in PR #47592:
URL: https://github.com/apache/airflow/pull/47592#discussion_r2235500500
##########
devel-common/src/tests_common/pytest_plugin.py:
##########
@@ -1856,15 +1856,20 @@ def hook_lineage_collector():
@pytest.fixture
-def clean_dags_and_dagruns():
+def clean_dags_dagruns_and_dagbundles():
"""Fixture that cleans the database before and after every test."""
- from tests_common.test_utils.db import clear_db_dags, clear_db_runs
+ from tests_common.test_utils.db import clear_db_dag_bundles,
clear_db_dags, clear_db_runs
+ from tests_common.test_utils.version_compat import AIRFLOW_V_3_0_PLUS
clear_db_runs()
clear_db_dags()
+ if AIRFLOW_V_3_0_PLUS:
+ clear_db_dag_bundles()
Review Comment:
This should use AIRFLOW_V_3_1_PLUS instead (since 3.0.x would not have this
function)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]