Skip to content

Commit fa13eff

Browse files
Update conftest.py
1 parent bea4994 commit fa13eff

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

tests/unit/dags/conftest.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
import os
2-
3-
import pytest
4-
5-
from airflow.models import DagBag
6-
from airflow.utils import db
7-
import logging
1+
# import os
2+
#
3+
# import pytest
4+
#
5+
# from airflow.models import DagBag
6+
# from airflow.utils import db
7+
# import logging
88

99
from tests import TESTS_PATH
1010

1111
AIRFLOW_DAG_FOLDER = TESTS_PATH.parent.resolve() / "dags"
1212

1313

14-
@pytest.fixture(scope="session")
15-
def dag_bag():
16-
os.environ["AIRFLOW_HOME"] = str(AIRFLOW_DAG_FOLDER)
17-
os.environ["AIRFLOW__CORE__LOAD_EXAMPLES"] = "False"
18-
# Initialising the Airflow DB so that it works properly with the new AIRFLOW_HOME
19-
logging.disable(logging.CRITICAL)
20-
db.resetdb()
21-
db.initdb()
22-
logging.disable(logging.NOTSET)
23-
dag_bag = DagBag(dag_folder=AIRFLOW_DAG_FOLDER, include_examples=False,
24-
read_dags_from_db=False)
25-
return dag_bag
14+
# @pytest.fixture(scope="session")
15+
# def dag_bag():
16+
# os.environ["AIRFLOW_HOME"] = str(AIRFLOW_DAG_FOLDER)
17+
# os.environ["AIRFLOW__CORE__LOAD_EXAMPLES"] = "False"
18+
# # Initialising the Airflow DB so that it works properly with the new AIRFLOW_HOME
19+
# logging.disable(logging.CRITICAL)
20+
# db.resetdb()
21+
# db.initdb()
22+
# logging.disable(logging.NOTSET)
23+
# dag_bag = DagBag(dag_folder=AIRFLOW_DAG_FOLDER, include_examples=False,
24+
# read_dags_from_db=False)
25+
# return dag_bag

0 commit comments

Comments
 (0)