We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdfaeb7 commit 2a45c5cCopy full SHA for 2a45c5c
1 file changed
tests/unit/dags/conftest.py
@@ -9,14 +9,14 @@
9
from dags.fetch_notices_by_date import FETCHER_DAG_NAME
10
from tests import AIRFLOW_DAG_FOLDER
11
12
-@pytest.fixture(scope="session", autouse=True)
+@pytest.fixture(scope="function", autouse=True)
13
def setup_airflow():
14
# Setup
15
temp_db_file = tempfile.NamedTemporaryFile(mode="w+", suffix=".db")
16
os.environ["AIRFLOW__CORE__SQL_ALCHEMY_CONN"] = f"sqlite:///{temp_db_file.name}"
17
os.environ["AIRFLOW__CORE__LOAD_EXAMPLES"] = "False"
18
os.environ["AIRFLOW__CORE__UNIT_TEST_MODE"] = "True"
19
- initdb(use_migration_files=False)
+ initdb()
20
21
# Run tests
22
yield
0 commit comments