Skip to content

Commit

Permalink
Fix compact tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ephraimbuddy committed Jan 15, 2025
1 parent 4f5ad41 commit bed2fa1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests_common/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,10 @@ def __exit__(self, type, value, traceback):
return

dag.clear(session=self.session)
dag.bulk_write_to_db(self.bundle_name, None, [dag], session=self.session)
if AIRFLOW_V_3_0_PLUS:
dag.bulk_write_to_db(self.bundle_name, None, [dag], session=self.session)
else:
dag.sync_to_db(session=self.session)

if dag.access_control:
from airflow.www.security_appless import ApplessAirflowSecurityManager
Expand Down

0 comments on commit bed2fa1

Please sign in to comment.