Skip to content

Commit

Permalink
Properly clean up after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Jan 8, 2025
1 parent 1e7504f commit 5392e2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions providers/tests/openlineage/plugins/test_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from airflow.utils.types import DagRunType

from tests_common.test_utils.config import conf_vars
from tests_common.test_utils.db import clear_db_runs
from tests_common.test_utils.version_compat import AIRFLOW_V_2_10_PLUS, AIRFLOW_V_3_0_PLUS

if AIRFLOW_V_3_0_PLUS:
Expand Down Expand Up @@ -73,6 +74,9 @@ def has_value_in_events(events, chain, value):
@pytest.mark.skipif(not AIRFLOW_V_2_10_PLUS, reason="Test requires Airflow 2.10+")
@pytest.mark.usefixtures("reset_logging_config")
class TestOpenLineageExecution:
def teardown_method(self):
clear_db_runs()

@pytest.fixture(autouse=True)
def clean_listener_manager(self):
get_listener_manager().clear()
Expand Down

0 comments on commit 5392e2b

Please sign in to comment.