【发布时间】:2016-11-21 10:13:03
【问题描述】:
假设我有一堆测试:
def test_func_one():
...
def test_func_two():
...
def test_func_three():
...
是否有装饰器或类似的东西可以添加到函数中以防止 pytest 仅运行该测试?结果可能类似于...
@pytest.disable()
def test_func_one():
...
def test_func_two():
...
def test_func_three():
...
【问题讨论】: