入门7-pytest跳过测试用例

蜗牛果果 / 2023-05-08 / 原文

1.无条件跳过用例

@pytest.mark.skip(reason="无理由跳过")

2.有条件跳过用例

@pytest.mark.skipif(workage<5,reason="无理由跳过")