incubator-airflow/tests/dags
Kaxil Naik 88f78090c7 Replace deprecated dummy operator path in test_zip.zip (#13172)
Replace deprecated path in `tests/dags/test_zip/test_zip.zip/test_zip.py`:

```
from airflow.operators.dummy_operator import DummyOperator
```

with

```
from airflow.operators.dummy import DummyOperator
```

(cherry picked from commit 8e99ed61ee)
2021-01-21 17:57:06 +00:00
..
subdir1 [AIRFLOW-6714] Remove magic comments about UTF-8 (#7338) 2020-02-02 22:18:19 +01:00
subdir2 Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
.airflowignore [AIRFLOW-4720] Allow comments in .airflowignore files. (#5355) 2019-06-02 09:18:25 +02:00
.gitignore [AIRFLOW-3680] Consistency update in tests for All GCP-related operators (#4493) 2019-01-12 12:44:01 +00:00
README.md Enable Markdownlint rule - MD022/blanks-around-headings (#12225) 2020-11-10 10:36:45 +01:00
no_dags.py [AIRFLOW-6714] Remove magic comments about UTF-8 (#7338) 2020-02-02 22:18:19 +01:00
test_backfill_pooled_tasks.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_clear_subdag.py Moved subdag_operator.py to subdag.py (#11307) 2020-12-08 16:26:39 +00:00
test_cli_triggered_dags.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
test_dag_with_no_tags.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_default_impersonation.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
test_default_views.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
test_double_trigger.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_example_bash_operator.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_heartbeat_failed_fast.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
test_impersonation.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
test_impersonation_subdag.py Moved subdag_operator.py to subdag.py (#11307) 2020-12-08 16:26:39 +00:00
test_invalid_cron.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_issue_1225.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_latest_runs.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_logging_in_dag.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
test_mark_success.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
test_missing_owner.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_multiple_dags.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
test_no_impersonation.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
test_on_failure_callback.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_on_kill.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_only_dummy_tasks.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_prev_dagrun_dep.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_retry_handling_job.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
test_scheduler_dags.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_subdag.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_task_view_type_check.py Enable Black - Python Auto Formmatter (#9550) 2020-11-03 23:51:54 +00:00
test_with_non_default_owner.py Move dummy_operator.py to dummy.py (#11178) (#11293) 2020-12-08 19:19:46 +00:00
test_zip.zip Replace deprecated dummy operator path in test_zip.zip (#13172) 2021-01-21 17:57:06 +00:00
test_zip_invalid_cron.zip [AIRFLOW-2855] Check Cron Expression Validity in DagBag.process_file() (#3698) 2018-08-07 18:07:43 -07:00

README.md

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.

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