在我的python单元测试中,test_B
取决于test_A
。但是,当我使用pytest运行测试时,它始终使用此消息进行SKIPS test_B:
SKIP [1] /home/shuklas/python3.6/site-packages/pytest_dependency.py:88: test_B depends on test_A
我缺少什么?
@pytest.mark.dependency()
def test_A():
....
@pytest.mark.dependency(depends=['test_A'])
def test_B():
....