incubator-airflow/tests/dags_corrupted
John Bampton e0b7cae51e
Fix spelling (#12266)
2020-11-10 23:19:43 +01:00
..
README.md Fix spelling (#12266) 2020-11-10 23:19:43 +01:00
test_impersonation_custom.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00

README.md

Unit Tests DAGs Folder

This folder contains DAGs for Airflow unit testing. These files contain defects that prevent the default Python interpreter from loading this file.

To access a DAG in this folder, use the following code inside a unit test.

TEST_DAG_FOLDER = os.path.join(
    os.path.dirname(os.path.realpath(__file__)), 'dags_corrupted')

dagbag = DagBag(dag_folder=TEST_DAG_FOLDER)
dag = dagbag.get_dag(dag_id)