# Unit Tests DAGs Folder

This folder contains DAGs for Airflow unit testing.

To access a DAG in this folder, use the following code inside a unit test. Note this only works when `test_mode` is on; otherwise the normal Airflow `DAGS_FOLDER` will take precedence.

```python
dagbag = DagBag()
dag = dagbag.get(dag_id)
```

# Unit Tests DAGs Folder

This folder contains DAGs for Airflow unit testing.

To access a DAG in this folder, use the following code inside a unit test. Note this only works when `test_mode` is on; otherwise the normal Airflow `DAGS_FOLDER` will take precedence.

```python
dagbag = DagBag()
dag = dagbag.get_dag(dag_id)
```

Fix a wrong code example about tests/dags
[AIRFLOW-321] Fix a wrong code example about tests/dags

tests/dags/README.md has a code example such as
"dag = dagbag.get(dag_id)", but DagBag doesn't have a method called get.
That should be fixed as get_dag.
