标签: pytest
pytest中是否有与pytest.skip或pytest.fail这样的成功状态等效的功能?
pytest.skip
pytest.fail
场景:
def subf()_: ... if p=="OK": pytest.pass???(); def test_AA001(): ... subf(p) a = 1 assert a==0, "Oh noh"
(我不想将变量返回到test_AA001)
Rr