incubator-airflow/tests/dags_corrupted
Kamil Breguła 97a429f9d0
[AIRFLOW-6714] Remove magic comments about UTF-8 (#7338)
2020-02-02 22:18:19 +01:00
..
README.md [AIRFLOW-6383] Add no trailing-whitespace pre-commit hook (#6941) 2019-12-28 19:34:35 +01:00
test_impersonation_custom.py [AIRFLOW-6714] Remove magic comments about UTF-8 (#7338) 2020-02-02 22:18:19 +01: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)