Fork me on GitHub
摘要: 一、fixture说明 fixture可以让我们自定义测试用例的前置条件,fixture可作为共享数据使用 1、fixture可以当做参数传入 import pytest @pytest.fixture() def test1(): print('\n开始执行function') def test_ 阅读全文
posted @ 2022-03-28 23:09 橘子偏爱橙子 阅读(312) 评论(0) 推荐(0) 编辑