Pytest系列(3) - setup和teardown的详细使用

如果你还想从头学起Pytest,可以看看这个系列的文章哦! https://www.cnblogs.com/poloyy/category/1690628.html   前言 用过unittest的童鞋都知道,有两个前置方法,两个后置方法;分别是 setup() setupClass() teardown() teardownClass() Pytest也贴心的提供了类似setup、teardow
相关文章
相关标签/搜索