Pytest教程__钩子方法setup、teardown、setup_class、teardown_class(8)
pytest跳过用例执行的用法与unittest跳过用例大致相同。pytest跳过用例的方法如下:pytest.mark.skip(reason):无条件用例。reason是跳过原因,下同。pytest.mark.skipIf(condition,reason):condition为True时跳过用例。pytest.mark.skip(reason)被装饰器@pytest.mark.skip装饰的