模块级 setup_module / teardown_module 全局,开始于模块始末
函数级 setup_functhon / teardown_function 只对函数用例生效(不在类中)
类级 setup_class / teardown_class 只在类中前后运行一次(在类中)
方法级 setup_method / teardown_method 开始于方法始末(在类中)
模块级 setup_module / teardown_module
module
函数级 setup_functhon / teardown_function
function
类级 setup_class / teardown_class
class
方法级 setup_method / teardown_method
method








网友评论