pytest数据文件处理
时间: 2023-10-12 10:05:27 浏览: 80
pytest-datadir是一个pytest插件,用于处理测试数据目录和文件。使用pytest-datadir,你可以指定一个包含模块名称或全局"data"文件夹的目录。比如你的目录结构如下:
.
├── data/
│ └── hello.txt
├── test_hello/
│ ...
<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [pytest-datadir:pytest插件,用于处理测试数据目录和文件](https://download.csdn.net/download/weixin_42136826/15096919)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [pytest数据驱动及conftest文件及装饰器使用](https://blog.csdn.net/qq_41332844/article/details/126837453)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [pytest之通过yaml实现数据驱动](https://blog.csdn.net/xiao__dashen/article/details/125577561)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文