提交 4ce75f10 编写于 作者: T tssujt

Proofread use-test-config section

上级 49df0388
......@@ -68,7 +68,7 @@
| [15 使用Mesos扩展(社区贡献)](zh/15.md) | [@ImPerat0R\_](https://github.com/tssujt) |
| [16 使用systemd运行Airflow](zh/16.md) | [@ImPerat0R\_](https://github.com/tssujt) |
| [17 使用upstart运行Airflow](zh/17.md) | [@ImPerat0R\_](https://github.com/tssujt) |
| [18 使用测试模式配置](zh/18.md) | |
| [18 使用测试模式配置](zh/18.md) | [@ImPerat0R\_](https://github.com/tssujt) |
| [19 UI /截图](zh/19.md) | |
| [20 概念](zh/20.md) | |
| [21 数据分析](zh/21.md) | |
......
# 使用测试模式配置
Airflow具有一组固定的“测试模式”配置选项。 您可以随时通过调用`airflow.configuration.load_test_config()`来加载它们(注意此操作不可逆!)。 但是,在您有机会调用load_test_config()之前,会加载一些选项(如DAG_FOLDER)。 为了急切加载测试配置,请在airflow.cfg中设置test_mode:
Airflow具有一组固定的“测试模式”配置选项。您可以随时通过调用`airflow.configuration.load_test_config()`来加载它们(注意此操作不可逆!)。但是,在您有机会调用load_test_config()之前,会加载一些选项(如DAG_FOLDER)。为了更快加载测试配置,请在airflow.cfg中设置test_mode:
```
[ tests ]
[tests]
unit_test_mode = True
```
由于Airflow的自动环境变量扩展(请参阅[设置配置选项](set-config.html) ),您还可以设置env var `AIRFLOW__CORE__UNIT_TEST_MODE`以临时覆盖airflow.cfg。
\ No newline at end of file
由于Airflow的自动环境变量扩展(请参阅[设置配置选项](7.md) ),您还可以设置环境变量`AIRFLOW__CORE__UNIT_TEST_MODE`以临时覆盖airflow.cfg。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册