技术栈

mark

防御塔策略
7 个月前
python·单元测试·pytest·hook·fixture·mark
pytest简单使用在项目根目录下创建固定名为 pytest.ini 的配置文件,文件格式需要加上 [pytest] ,然后通过 markers 注册自定义标记