【pytest】跳过之注解器实现方式
@pytest.mark.skip(reason='暂时不测,需要管理员权限') def test_by_admin(self): """管理员测试case""" assert res.status_code == 200 assert res.json()['success']
python自动化 文章被收录于专栏
python写好pytest自动化的一些小妙招
@pytest.mark.skip(reason='暂时不测,需要管理员权限') def test_by_admin(self): """管理员测试case""" assert res.status_code == 200 assert res.json()['success']
python写好pytest自动化的一些小妙招
相关推荐