摘要:
xfail 函数文档如下: def xfail(self,condition=None, reason=None, raises=None, run=True, strict=False): """mark the the test function as an expected failure i 阅读全文
posted @ 2020-08-20 10:24
子非鱼焉知鱼之乐丶
阅读(699)
评论(0)
推荐(1)
摘要:
本篇博客比较下 parametrize 中 参数分别为 True 和 False 时的两种情况: 1) 当 indirect=False 时,argnames 参数被当成普通变量 import pytest@pytest.fixture(params=['a', 'b', 'c'])def fixt 阅读全文
posted @ 2020-08-20 08:58
子非鱼焉知鱼之乐丶
阅读(1055)
评论(0)
推荐(1)

浙公网安备 33010602011771号